mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article.
Props ianbelanger, tobifjellner, SergeyBiryukov. See #47771. Built from https://develop.svn.wordpress.org/trunk@45674 git-svn-id: http://core.svn.wordpress.org/trunk@45485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ccba6c4aec
commit
8e85299a00
@ -48,7 +48,7 @@
|
||||
</ol>
|
||||
|
||||
<h2>Migrating from other systems</h2>
|
||||
<p>WordPress can <a href="https://codex.wordpress.org/Importing_Content">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php" title="Import to WordPress">our import tools</a>.</p>
|
||||
<p>WordPress can <a href="https://wordpress.org/support/article/importing-content/">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php" title="Import to WordPress">our import tools</a>.</p>
|
||||
|
||||
<h2>System Requirements</h2>
|
||||
<ul>
|
||||
|
@ -53,7 +53,7 @@ switch ( $action ) {
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Administration_Screens#Comments">Documentation on Comments</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/comments-screen/">Documentation on Comments</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -204,9 +204,9 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Administration_Screens#Comments">Documentation on Comments</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Comment_Spam">Documentation on Comment Spam</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Keyboard_Shortcuts">Documentation on Keyboard Shortcuts</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/comments-screen/">Documentation on Comments</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/comment-spam/">Documentation on Comment Spam</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/keyboard-shortcuts/">Documentation on Keyboard Shortcuts</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -294,7 +294,7 @@ if ( 'post' == $post_type ) {
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p>' . sprintf( __( 'You can also create posts with the <a href="%s">Press This bookmarklet</a>.' ), 'tools.php' ) . '</p>' .
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Posts_Add_New_Screen">Documentation on Writing and Editing Posts</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/wordpress-editor/">Documentation on Writing and Editing Posts</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
} elseif ( 'page' == $post_type ) {
|
||||
@ -311,8 +311,8 @@ if ( 'post' == $post_type ) {
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Pages_Add_New_Screen">Documentation on Adding New Pages</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Pages_Screen#Editing_Individual_Pages">Documentation on Editing Pages</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/pages-add-new-screen/">Documentation on Adding New Pages</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/pages-screen/">Documentation on Editing Pages</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
} elseif ( 'attachment' == $post_type ) {
|
||||
@ -330,14 +330,14 @@ if ( 'post' == $post_type ) {
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media">Documentation on Edit Media</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/edit-media/">Documentation on Edit Media</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
}
|
||||
|
||||
if ( 'post' == $post_type || 'page' == $post_type ) {
|
||||
$inserting_media = '<p>' . __( 'You can upload and insert media (images, audio, documents, etc.) by clicking the Add Media button. You can select from the images and files already uploaded to the Media Library, or upload new media to add to your page or post. To create an image gallery, select the images to add and click the “Create a new gallery” button.' ) . '</p>';
|
||||
$inserting_media .= '<p>' . __( 'You can also embed media from many popular websites including Twitter, YouTube, Flickr and others by pasting the media URL on its own line into the content of your post/page. Please refer to the Codex to <a href="https://codex.wordpress.org/Embeds">learn more about embeds</a>.' ) . '</p>';
|
||||
$inserting_media .= '<p>' . __( 'You can also embed media from many popular websites including Twitter, YouTube, Flickr and others by pasting the media URL on its own line into the content of your post/page. <a href="https://wordpress.org/support/article/embeds/">Learn more about embeds</a>.' ) . '</p>';
|
||||
|
||||
get_current_screen()->add_help_tab(
|
||||
array(
|
||||
@ -355,7 +355,7 @@ if ( 'post' == $post_type ) {
|
||||
'</li>';
|
||||
|
||||
if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) {
|
||||
$publish_box .= '<li>' . __( '<strong>Format</strong> — Post Formats designate how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Please refer to the Codex for <a href="https://codex.wordpress.org/Post_Formats#Supported_Formats">descriptions of each post format</a>. Your theme could enable all or some of 10 possible formats.' ) . '</li>';
|
||||
$publish_box .= '<li>' . __( '<strong>Format</strong> — Post Formats designate how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Your theme could enable all or some of 10 possible formats. <a href="https://wordpress.org/support/article/post-formats/#supported-formats">Learn more about each post format</a>.' ) . '</li>';
|
||||
}
|
||||
|
||||
if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) {
|
||||
|
@ -45,7 +45,7 @@ if ( 'category' == $taxonomy ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Use with caution, see https://codex.wordpress.org/Function_Reference/wp_reset_vars
|
||||
* Use with caution, see https://developer.wordpress.org/reference/functions/wp_reset_vars/
|
||||
*/
|
||||
wp_reset_vars( array( 'wp_http_referer' ) );
|
||||
|
||||
|
@ -297,11 +297,11 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t
|
||||
$help = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
|
||||
|
||||
if ( 'category' == $taxonomy ) {
|
||||
$help .= '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Categories_Screen">Documentation on Categories</a>' ) . '</p>';
|
||||
$help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-categories-screen/">Documentation on Categories</a>' ) . '</p>';
|
||||
} elseif ( 'link_category' == $taxonomy ) {
|
||||
$help .= '<p>' . __( '<a href="https://codex.wordpress.org/Links_Link_Categories_Screen">Documentation on Link Categories</a>' ) . '</p>';
|
||||
} else {
|
||||
$help .= '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Tags_Screen">Documentation on Tags</a>' ) . '</p>';
|
||||
$help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-tags-screen/">Documentation on Tags</a>' ) . '</p>';
|
||||
}
|
||||
|
||||
$help .= '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>';
|
||||
|
@ -257,7 +257,7 @@ if ( 'post' == $post_type ) {
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Posts_Screen">Documentation on Managing Posts</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/posts-screen/">Documentation on Managing Posts</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
@ -282,7 +282,7 @@ if ( 'post' == $post_type ) {
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Pages_Screen">Documentation on Managing Pages</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/pages-screen/">Documentation on Managing Pages</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -54,7 +54,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Tools_Export_Screen">Documentation on Export</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/tools-export-screen/">Documentation on Export</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -28,7 +28,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Tools_Import_Screen">Documentation on Import</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/tools-import-screen/">Documentation on Import</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -1740,7 +1740,7 @@ function wp_welcome_panel() {
|
||||
<?php if ( current_user_can( 'manage_options' ) ) : ?>
|
||||
<li><?php printf( '<a href="%s" class="welcome-icon welcome-comments">' . __( 'Turn comments on or off' ) . '</a>', admin_url( 'options-discussion.php' ) ); ?></li>
|
||||
<?php endif; ?>
|
||||
<li><?php printf( '<a href="%s" class="welcome-icon welcome-learn-more">' . __( 'Learn more about getting started' ) . '</a>', __( 'https://codex.wordpress.org/First_Steps_With_WordPress' ) ); ?></li>
|
||||
<li><?php printf( '<a href="%s" class="welcome-icon welcome-learn-more">' . __( 'Learn more about getting started' ) . '</a>', __( 'https://wordpress.org/support/article/first-steps-with-wordpress-b/' ) ); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1811,7 +1811,7 @@ function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own
|
||||
* The return value can be overridden by defining the `FS_METHOD` constant in `wp-config.php`,
|
||||
* or filtering via {@see 'filesystem_method'}.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants
|
||||
* @link https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants
|
||||
*
|
||||
* Plugins may define a custom transport handler, See WP_Filesystem().
|
||||
*
|
||||
|
@ -665,7 +665,7 @@ function post_excerpt_meta_box( $post ) {
|
||||
printf(
|
||||
/* translators: %s: Codex URL */
|
||||
__( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="%s">Learn more about manual excerpts</a>.' ),
|
||||
__( 'https://codex.wordpress.org/Excerpt' )
|
||||
__( 'https://wordpress.org/support/article/excerpt/' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
@ -702,7 +702,7 @@ function post_trackback_meta_box( $post ) {
|
||||
printf(
|
||||
/* translators: %s: Codex URL */
|
||||
__( 'Trackbacks are a way to notify legacy blog systems that you’ve linked to them. If you link other WordPress sites, they’ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.' ),
|
||||
__( 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' )
|
||||
__( 'https://wordpress.org/support/article/introduction-to-blogging/#comments' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
@ -739,7 +739,7 @@ function post_custom_meta_box( $post ) {
|
||||
printf(
|
||||
/* translators: %s: Codex URL */
|
||||
__( 'Custom fields can be used to add extra metadata to a post that you can <a href="%s">use in your theme</a>.' ),
|
||||
__( 'https://codex.wordpress.org/Using_Custom_Fields' )
|
||||
__( 'https://wordpress.org/support/article/custom-fields/' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
@ -763,7 +763,7 @@ function post_comment_status_meta_box( $post ) {
|
||||
printf(
|
||||
/* translators: %s: Codex URL */
|
||||
__( 'Allow <a href="%s">trackbacks and pingbacks</a> on this page' ),
|
||||
__( 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' )
|
||||
__( 'https://wordpress.org/support/article/introduction-to-blogging/#managing-comments' )
|
||||
);
|
||||
?>
|
||||
</label>
|
||||
|
@ -1166,6 +1166,6 @@ function get_site_screen_help_tab_args() {
|
||||
*/
|
||||
function get_site_screen_help_sidebar_content() {
|
||||
return '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Sites_Screen">Documentation on Site Management</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/network-admin-sites-screen/">Documentation on Site Management</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>' ) . '</p>';
|
||||
}
|
||||
|
@ -129,5 +129,5 @@ function options_reading_add_js() {
|
||||
*/
|
||||
function options_reading_blog_charset() {
|
||||
echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />';
|
||||
echo '<p class="description">' . __( 'The <a href="https://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';
|
||||
echo '<p class="description">' . __( 'The <a href="https://wordpress.org/support/article/glossary/#character-set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ unset( $help );
|
||||
|
||||
$screen->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Dashboard_Screen">Documentation on Dashboard</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/dashboard-screen/">Documentation on Dashboard</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -57,7 +57,7 @@ get_current_screen()->add_help_tab(
|
||||
);
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Media_Add_New_Screen">Documentation on Uploading Media Files</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/media-add-new-screen/">Documentation on Uploading Media Files</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -93,7 +93,7 @@ switch ( $action ) {
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media">Documentation on Edit Media</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/edit-media/">Documentation on Edit Media</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -592,7 +592,7 @@ endif;
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Appearance_Menus_Screen">Documentation on Menus</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/appearance-menus-screen/">Documentation on Menus</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -63,8 +63,8 @@ $network_help = '<p>' . __( 'This screen allows you to configure a network as ha
|
||||
'<p>' . __( 'Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.' ) . '</p>' .
|
||||
'<p>' . __( 'The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with “/blog/” from the main site. This disabling will be addressed in a future version.' ) . '</p>' .
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Create_A_Network">Documentation on Creating a Network</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Tools_Network_Screen">Documentation on the Network Screen</a>' ) . '</p>';
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/create-a-network/">Documentation on Creating a Network</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/tools-network-screen/">Documentation on the Network Screen</a>' ) . '</p>';
|
||||
|
||||
get_current_screen()->add_help_tab(
|
||||
array(
|
||||
@ -76,8 +76,8 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Create_A_Network">Documentation on Creating a Network</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Tools_Network_Screen">Documentation on the Network Screen</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/create-a-network/">Documentation on Creating a Network</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/tools-network-screen/">Documentation on the Network Screen</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -52,7 +52,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin">Documentation on the Network Admin</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/network-admin/">Documentation on the Network Admin</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -29,7 +29,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Sites_Screen">Documentation on Site Management</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/network-admin-sites-screen/">Documentation on Site Management</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -42,7 +42,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Sites_Screen">Documentation on Site Management</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/network-admin-sites-screen/">Documentation on Site Management</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -28,7 +28,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Updates_Screen">Documentation on Upgrade Network</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/network-admin-updates-screen/">Documentation on Upgrade Network</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -28,7 +28,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Settings_Discussion_Screen">Documentation on Discussion Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/settings-discussion-screen/">Documentation on Discussion Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -45,7 +45,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Settings_General_Screen">Documentation on General Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/settings-general-screen/">Documentation on General Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
@ -97,7 +97,7 @@ if ( ! is_multisite() ) {
|
||||
printf(
|
||||
/* translators: %s: Codex URL */
|
||||
__( 'Enter the address here if you <a href="%s">want your site home page to be different from your WordPress installation directory</a>.' ),
|
||||
__( 'https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory' )
|
||||
__( 'https://wordpress.org/support/article/giving-wordpress-its-own-directory/' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
@ -376,7 +376,7 @@ foreach ( $time_formats as $format ) {
|
||||
'<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
|
||||
"<span class='spinner'></span>\n" . '</p>';
|
||||
|
||||
echo "\t<p class='date-time-doc'>" . __( '<a href="https://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date and time formatting</a>.' ) . "</p>\n";
|
||||
echo "\t<p class='date-time-doc'>" . __( '<a href="https://wordpress.org/support/article/formatting-date-and-time/">Documentation on date and time formatting</a>.' ) . "</p>\n";
|
||||
?>
|
||||
</fieldset>
|
||||
</td>
|
||||
|
@ -34,7 +34,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Settings_Media_Screen">Documentation on Media Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/settings-media-screen/">Documentation on Media Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -48,8 +48,8 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Settings_Permalinks_Screen">Documentation on Permalinks Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Using_Permalinks">Documentation on Using Permalinks</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/settings-permalinks-screen/">Documentation on Permalinks Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/using-permalinks/">Documentation on Using Permalinks</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
@ -175,7 +175,7 @@ require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
printf(
|
||||
/* translators: %s: Codex URL */
|
||||
__( 'WordPress offers you the ability to create a custom URL structure for your permalinks and archives. Custom URL structures can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="%s">number of tags are available</a>, and here are some examples to get you started.' ),
|
||||
__( 'https://codex.wordpress.org/Using_Permalinks' )
|
||||
__( 'https://wordpress.org/support/article/using-permalinks/' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
@ -376,7 +376,7 @@ printf( __( 'If you like, you may enter custom structures for your category and
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php elseif ( $is_nginx ) : ?>
|
||||
<p><?php _e( '<a href="https://codex.wordpress.org/Nginx">Documentation on Nginx configuration</a>.' ); ?></p>
|
||||
<p><?php _e( '<a href="https://wordpress.org/support/article/nginx/">Documentation on Nginx configuration</a>.' ); ?></p>
|
||||
<?php
|
||||
else :
|
||||
if ( $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) :
|
||||
|
@ -40,7 +40,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Settings_Reading_Screen">Documentation on Reading Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/settings-reading-screen/">Documentation on Reading Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -49,7 +49,7 @@ if ( apply_filters( 'enable_update_services_configuration', true ) ) {
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Settings_Writing_Screen">Documentation on Writing Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/settings-writing-screen/">Documentation on Writing Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -267,7 +267,7 @@ if ( 'update' == $action ) {
|
||||
'2.7.0',
|
||||
sprintf(
|
||||
/* translators: %s: the option/setting */
|
||||
__( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API' ),
|
||||
__( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://developer.wordpress.org/plugins/settings/settings-api/' ),
|
||||
'<code>' . $option . '</code>'
|
||||
)
|
||||
);
|
||||
|
@ -138,8 +138,8 @@ if ( ! is_file( $real_file ) ) {
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Plugins_Editor_Screen">Documentation on Editing Plugins</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Writing_a_Plugin">Documentation on Writing Plugins</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/plugins-editor-screen/">Documentation on Editing Plugins</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://developer.wordpress.org/plugins/">Documentation on Writing Plugins</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -102,7 +102,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Plugins_Add_New_Screen">Documentation on Installing Plugins</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/plugins-add-new-screen/">Documentation on Installing Plugins</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -463,7 +463,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Managing_Plugins#Plugin_Management">Documentation on Managing Plugins</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/managing-plugins/">Documentation on Managing Plugins</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -142,7 +142,7 @@ get_current_screen()->add_help_tab(
|
||||
);
|
||||
|
||||
$revisions_sidebar = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
|
||||
$revisions_sidebar .= '<p>' . __( '<a href="https://codex.wordpress.org/Revision_Management">Revisions Management</a>' ) . '</p>';
|
||||
$revisions_sidebar .= '<p>' . __( '<a href="https://wordpress.org/support/article/revisions/">Revisions Management</a>' ) . '</p>';
|
||||
$revisions_sidebar .= '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>';
|
||||
|
||||
get_current_screen()->set_help_sidebar( $revisions_sidebar );
|
||||
|
@ -189,7 +189,7 @@ switch ( $step ) {
|
||||
/* translators: %s: Codex URL */
|
||||
printf(
|
||||
__( 'Need more help? <a href="%s">We got it</a>.' ),
|
||||
__( 'https://codex.wordpress.org/Editing_wp-config.php' )
|
||||
__( 'https://wordpress.org/support/article/editing-wp-config-php/' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
@ -48,10 +48,10 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Theme_Development">Documentation on Theme Development</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Using_Themes">Documentation on Using Themes</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Editing_Files">Documentation on Editing Files</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Template_Tags">Documentation on Template Tags</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://developer.wordpress.org/themes/">Documentation on Theme Development</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/using-themes/">Documentation on Using Themes</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/editing-files/">Documentation on Editing Files</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://developer.wordpress.org/themes/basics/template-tags/">Documentation on Template Tags</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -126,7 +126,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Using_Themes#Adding_New_Themes">Documentation on Adding New Themes</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/using-themes/#adding-new-themes">Documentation on Adding New Themes</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -141,7 +141,7 @@ if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' )
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Using_Themes">Documentation on Using Themes</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/using-themes/">Documentation on Using Themes</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -49,7 +49,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Tools_Screen">Documentation on Tools</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/tools-screen/">Documentation on Tools</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -210,7 +210,7 @@ function core_upgrade_preamble() {
|
||||
|
||||
if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) {
|
||||
echo '<div class="notice notice-warning"><p>';
|
||||
_e( '<strong>Important:</strong> Before updating, please <a href="https://codex.wordpress.org/WordPress_Backups">back up your database and files</a>. For help with updates, visit the <a href="https://codex.wordpress.org/Updating_WordPress">Updating WordPress</a> Codex page.' );
|
||||
_e( '<strong>Important:</strong> Before updating, please <a href="https://wordpress.org/support/article/wordpress-backups/">back up your database and files</a>. For help with updates, visit the <a href="https://wordpress.org/support/article/updating-wordpress/">Updating WordPress</a> documentation page.' );
|
||||
echo '</p></div>';
|
||||
|
||||
echo '<h2 class="response">';
|
||||
@ -664,7 +664,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Dashboard_Updates_Screen">Documentation on Updating WordPress</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/dashboard-updates-screen/">Documentation on Updating WordPress</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -72,7 +72,7 @@ if ( 'grid' === $mode ) {
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Media_Library_Screen">Documentation on Media Library</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/media-library-screen/">Documentation on Media Library</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
@ -247,7 +247,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Media_Library_Screen">Documentation on Media Library</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/media-library-screen/">Documentation on Media Library</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -64,7 +64,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Users_Your_Profile_Screen">Documentation on User Profiles</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/users-your-profile-screen/">Documentation on User Profiles</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
@ -308,7 +308,7 @@ endif; // $_wp_admin_css_colors
|
||||
?>
|
||||
<tr class="user-comment-shortcuts-wrap">
|
||||
<th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th>
|
||||
<td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php checked( 'true', $profileuser->comment_shortcuts ); ?> /> <?php _e( 'Enable keyboard shortcuts for comment moderation.' ); ?></label> <?php _e( '<a href="https://codex.wordpress.org/Keyboard_Shortcuts" target="_blank">More information</a>' ); ?></td>
|
||||
<td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php checked( 'true', $profileuser->comment_shortcuts ); ?> /> <?php _e( 'Enable keyboard shortcuts for comment moderation.' ); ?></label> <?php _e( '<a href="https://wordpress.org/support/article/keyboard-shortcuts/" target="_blank">More information</a>' ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr class="show-admin-bar user-admin-bar-front-wrap">
|
||||
|
@ -252,7 +252,7 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Users_Add_New_Screen">Documentation on Adding New Users</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/users-add-new-screen/">Documentation on Adding New Users</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -71,8 +71,8 @@ unset( $help );
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Users_Screen">Documentation on Managing Users</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Roles_and_Capabilities">Descriptions of Roles and Capabilities</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/users-screen/">Documentation on Managing Users</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/roles-and-capabilities/">Descriptions of Roles and Capabilities</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
@ -80,12 +80,12 @@ get_current_screen()->add_help_tab(
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://codex.wordpress.org/Appearance_Widgets_Screen">Documentation on Widgets</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/appearance-widgets-screen/">Documentation on Widgets</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
if ( ! current_theme_supports( 'widgets' ) ) {
|
||||
wp_die( __( 'The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please <a href="https://codex.wordpress.org/Widgetizing_Themes">follow these instructions</a>.' ) );
|
||||
wp_die( __( 'The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please <a href="https://developer.wordpress.org/themes/functionality/widgets/">follow these instructions</a>.' ) );
|
||||
}
|
||||
|
||||
// These are the widgets grouped by sidebar
|
||||
|
@ -50,7 +50,7 @@ function get_the_author( $deprecated = '' ) {
|
||||
*
|
||||
* @since 0.71
|
||||
* @see get_the_author()
|
||||
* @link https://codex.wordpress.org/Template_Tags/the_author
|
||||
* @link https://developer.wordpress.org/reference/functions/the_author/
|
||||
*
|
||||
* @param string $deprecated Deprecated.
|
||||
* @param bool $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it.
|
||||
@ -246,7 +246,7 @@ function get_the_author_link() {
|
||||
* If the author has a home page set, echo an HTML link, otherwise just echo the
|
||||
* author's name.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Tags/the_author_link
|
||||
* @link https://developer.wordpress.org/reference/functions/the_author_link/
|
||||
*
|
||||
* @since 2.1.0
|
||||
*/
|
||||
@ -272,7 +272,7 @@ function get_the_author_posts() {
|
||||
/**
|
||||
* Display the number of posts by the author of the current post.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Tags/the_author_posts
|
||||
* @link https://developer.wordpress.org/reference/functions/the_author_posts/
|
||||
* @since 0.71
|
||||
*/
|
||||
function the_author_posts() {
|
||||
@ -376,7 +376,7 @@ function get_author_posts_url( $author_id, $author_nicename = '' ) {
|
||||
/**
|
||||
* List all the authors of the site, with several options available.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Tags/wp_list_authors
|
||||
* @link https://developer.wordpress.org/reference/functions/wp_list_authors/
|
||||
*
|
||||
* @since 1.2.0
|
||||
*
|
||||
|
@ -4,8 +4,8 @@
|
||||
*
|
||||
* Used internally by the WP_Embed class, but is designed to be generic.
|
||||
*
|
||||
* @link https://codex.wordpress.org/oEmbed oEmbed Codex Article
|
||||
* @link http://oembed.com/ oEmbed Homepage
|
||||
* @link https://wordpress.org/support/article/embeds/
|
||||
* @link http://oembed.com/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage oEmbed
|
||||
|
@ -10,7 +10,7 @@
|
||||
/**
|
||||
* The WordPress Query class.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Function_Reference/WP_Query Codex page.
|
||||
* @link https://developer.wordpress.org/reference/classes/wp_query/
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @since 4.5.0 Removed the `$comments_popup` property.
|
||||
|
@ -434,7 +434,7 @@ function get_comment_count( $post_id = 0 ) {
|
||||
* Add meta data field to a comment.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @link https://codex.wordpress.org/Function_Reference/add_comment_meta
|
||||
* @link https://developer.wordpress.org/reference/functions/add_comment_meta/
|
||||
*
|
||||
* @param int $comment_id Comment ID.
|
||||
* @param string $meta_key Metadata name.
|
||||
@ -454,7 +454,7 @@ function add_comment_meta( $comment_id, $meta_key, $meta_value, $unique = false
|
||||
* allows removing all metadata matching key, if needed.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @link https://codex.wordpress.org/Function_Reference/delete_comment_meta
|
||||
* @link https://developer.wordpress.org/reference/functions/delete_comment_meta/
|
||||
*
|
||||
* @param int $comment_id comment ID
|
||||
* @param string $meta_key Metadata name.
|
||||
@ -469,7 +469,7 @@ function delete_comment_meta( $comment_id, $meta_key, $meta_value = '' ) {
|
||||
* Retrieve comment meta field for a comment.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @link https://codex.wordpress.org/Function_Reference/get_comment_meta
|
||||
* @link https://developer.wordpress.org/reference/functions/get_comment_meta/
|
||||
*
|
||||
* @param int $comment_id Comment ID.
|
||||
* @param string $key Optional. The meta key to retrieve. By default, returns data for all keys.
|
||||
@ -490,7 +490,7 @@ function get_comment_meta( $comment_id, $key = '', $single = false ) {
|
||||
* If the meta field for the comment does not exist, it will be added.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @link https://codex.wordpress.org/Function_Reference/update_comment_meta
|
||||
* @link https://developer.wordpress.org/reference/functions/update_comment_meta/
|
||||
*
|
||||
* @param int $comment_id Comment ID.
|
||||
* @param string $meta_key Metadata key.
|
||||
|
@ -24,7 +24,7 @@
|
||||
* @since 5.1.0 Return value modified to boolean indicating success or failure,
|
||||
* {@see 'pre_schedule_event'} filter added to short-circuit the function.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Function_Reference/wp_schedule_single_event
|
||||
* @link https://developer.wordpress.org/reference/functions/wp_schedule_single_event/
|
||||
*
|
||||
* @param int $timestamp Unix timestamp (UTC) for when to next run the event.
|
||||
* @param string $hook Action hook to execute when the event is run.
|
||||
@ -177,7 +177,7 @@ function wp_schedule_single_event( $timestamp, $hook, $args = array() ) {
|
||||
* @since 5.1.0 Return value modified to boolean indicating success or failure,
|
||||
* {@see 'pre_schedule_event'} filter added to short-circuit the function.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Function_Reference/wp_schedule_event
|
||||
* @link https://developer.wordpress.org/reference/functions/wp_schedule_event/
|
||||
*
|
||||
* @param int $timestamp Unix timestamp (UTC) for when to next run the event.
|
||||
* @param string $recurrence How often the event should subsequently recur. See wp_get_schedules() for accepted values.
|
||||
|
@ -51,7 +51,7 @@ class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control {
|
||||
printf(
|
||||
/* translators: 1: Codex URL, 2: additional link attributes, 3: accessibility text */
|
||||
_x( '(If you plan to use a menu <a href="%1$s" %2$s>widget%3$s</a>, skip this step.)', 'menu locations' ),
|
||||
__( 'https://codex.wordpress.org/WordPress_Widgets' ),
|
||||
__( 'https://wordpress.org/support/article/wordpress-widgets/' ),
|
||||
' class="external-link" target="_blank"',
|
||||
sprintf(
|
||||
'<span class="screen-reader-text"> %s</span>',
|
||||
|
@ -10,7 +10,7 @@
|
||||
* return no results. In these cases, a _doing_it_wrong() error notice is also thrown.
|
||||
* See WP_Date_Query::validate_date_values().
|
||||
*
|
||||
* @link https://codex.wordpress.org/Function_Reference/WP_Query Codex page.
|
||||
* @link https://developer.wordpress.org/reference/classes/wp_query/
|
||||
*
|
||||
* @since 3.7.0
|
||||
*/
|
||||
|
@ -53,7 +53,7 @@ function get_postdata($postid) {
|
||||
*
|
||||
* Use The Loop instead.
|
||||
*
|
||||
* @link https://codex.wordpress.org/The_Loop
|
||||
* @link https://developer.wordpress.org/themes/basics/the-loop/
|
||||
*
|
||||
* @since 1.0.1
|
||||
* @deprecated 1.5.0
|
||||
@ -1279,7 +1279,7 @@ function get_category_children( $id, $before = '/', $after = '', $visited = arra
|
||||
* @deprecated 4.0.0 Use get_terms()
|
||||
* @see get_terms()
|
||||
*
|
||||
* @link https://codex.wordpress.org/Function_Reference/get_all_category_ids
|
||||
* @link https://developer.wordpress.org/reference/functions/get_all_category_ids/
|
||||
*
|
||||
* @return object List of all of the category IDs.
|
||||
*/
|
||||
|
@ -4693,7 +4693,7 @@ function sanitize_option( $option, $value ) {
|
||||
$error = sprintf(
|
||||
/* translators: %s: Codex URL */
|
||||
__( 'A structure tag is required when using custom permalinks. <a href="%s">Learn more</a>' ),
|
||||
__( 'https://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure' )
|
||||
__( 'https://wordpress.org/support/article/using-permalinks/#choosing-your-permalink-structure' )
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
@ -4792,7 +4792,7 @@ function _doing_it_wrong( $function, $message, $version ) {
|
||||
/* translators: %s: Codex URL */
|
||||
$message .= ' ' . sprintf(
|
||||
__( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ),
|
||||
__( 'https://codex.wordpress.org/Debugging_in_WordPress' )
|
||||
__( 'https://wordpress.org/support/article/debugging-in-wordpress/' )
|
||||
);
|
||||
/* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: Version information message */
|
||||
trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );
|
||||
@ -4804,7 +4804,7 @@ function _doing_it_wrong( $function, $message, $version ) {
|
||||
}
|
||||
$message .= sprintf(
|
||||
' Please see <a href="%s">Debugging in WordPress</a> for more information.',
|
||||
'https://codex.wordpress.org/Debugging_in_WordPress'
|
||||
'https://wordpress.org/support/article/debugging-in-wordpress/'
|
||||
);
|
||||
trigger_error( sprintf( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s', $function, $message, $version ) );
|
||||
}
|
||||
|
@ -492,7 +492,7 @@ function ms_not_installed( $domain, $path ) {
|
||||
/* translators: %s: Codex URL */
|
||||
$msg .= sprintf(
|
||||
__( 'Read the <a href="%s" target="_blank">bug report</a> page. Some of the guidelines there may help you figure out what went wrong.' ),
|
||||
__( 'https://codex.wordpress.org/Debugging_a_WordPress_Network' )
|
||||
__( 'https://wordpress.org/support/article/debugging-a-wordpress-network/' )
|
||||
);
|
||||
$msg .= ' ' . __( 'If you’re still stuck with this message, then check that your database contains the following tables:' ) . '</p><ul>';
|
||||
foreach ( $wpdb->tables( 'global' ) as $t => $table ) {
|
||||
|
@ -11,7 +11,7 @@
|
||||
* {@link https://secure.php.net/manual/en/language.pseudo-types.php#language.types.callback 'callback'}
|
||||
* type are valid.
|
||||
*
|
||||
* Also see the {@link https://codex.wordpress.org/Plugin_API Plugin API} for
|
||||
* Also see the {@link https://developer.wordpress.org/plugins/ Plugin API} for
|
||||
* more information and examples on how to use a lot of these functions.
|
||||
*
|
||||
* This file should have no external dependencies.
|
||||
|
@ -1565,7 +1565,7 @@ function _post_type_meta_capabilities( $capabilities = null ) {
|
||||
* by `$post_type_object->label`. Default is 'Posts' / 'Pages'.
|
||||
* - `singular_name` - Name for one object of this post type. Default is 'Post' / 'Page'.
|
||||
* - `add_new` - Default is 'Add New' for both hierarchical and non-hierarchical types.
|
||||
* When internationalizing this string, please use a {@link https://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context gettext context}
|
||||
* When internationalizing this string, please use a {@link https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#disambiguation-by-context gettext context}
|
||||
* matching your post type. Example: `_x( 'Add New', 'product', 'textdomain' );`.
|
||||
* - `add_new_item` - Label for adding a new singular item. Default is 'Add New Post' / 'Add New Page'.
|
||||
* - `edit_item` - Label for editing a singular item. Default is 'Edit Post' / 'Edit Page'.
|
||||
|
@ -5,7 +5,7 @@
|
||||
* The query API attempts to get which part of WordPress the user is on. It
|
||||
* also provides functionality for getting URL query information.
|
||||
*
|
||||
* @link https://codex.wordpress.org/The_Loop More information on The Loop.
|
||||
* @link https://developer.wordpress.org/themes/basics/the-loop/ More information on The Loop.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Query
|
||||
|
@ -23,7 +23,7 @@
|
||||
*
|
||||
* $out = do_shortcode( $content );
|
||||
*
|
||||
* @link https://codex.wordpress.org/Shortcode_API
|
||||
* @link https://developer.wordpress.org/plugins/shortcodes/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Shortcodes
|
||||
|
@ -807,7 +807,7 @@ function add_user_meta( $user_id, $meta_key, $meta_value, $unique = false ) {
|
||||
* allows removing all metadata matching key, if needed.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @link https://codex.wordpress.org/Function_Reference/delete_user_meta
|
||||
* @link https://developer.wordpress.org/reference/functions/delete_user_meta/
|
||||
*
|
||||
* @param int $user_id User ID
|
||||
* @param string $meta_key Metadata name.
|
||||
@ -822,7 +822,7 @@ function delete_user_meta( $user_id, $meta_key, $meta_value = '' ) {
|
||||
* Retrieve user meta field for a user.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @link https://codex.wordpress.org/Function_Reference/get_user_meta
|
||||
* @link https://developer.wordpress.org/reference/functions/get_user_meta/
|
||||
*
|
||||
* @param int $user_id User ID.
|
||||
* @param string $key Optional. The meta key to retrieve. By default, returns data for all keys.
|
||||
@ -842,7 +842,7 @@ function get_user_meta( $user_id, $key = '', $single = false ) {
|
||||
* If the meta field for the user does not exist, it will be added.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @link https://codex.wordpress.org/Function_Reference/update_user_meta
|
||||
* @link https://developer.wordpress.org/reference/functions/update_user_meta/
|
||||
*
|
||||
* @param int $user_id User ID.
|
||||
* @param string $meta_key Metadata key.
|
||||
|
@ -10,7 +10,7 @@
|
||||
* servers with known pretty permalink capability.
|
||||
*
|
||||
* Note: Though Nginx is detected, WordPress does not currently
|
||||
* generate rewrite rules for it. See https://codex.wordpress.org/Nginx
|
||||
* generate rewrite rules for it. See https://wordpress.org/support/article/nginx/
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-45673';
|
||||
$wp_version = '5.3-alpha-45674';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
@ -10,8 +10,8 @@
|
||||
* This functionality was found in a plugin before the WordPress 2.2 release, which
|
||||
* included it in the core from that point on.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Plugins/WordPress_Widgets WordPress Widgets
|
||||
* @link https://codex.wordpress.org/Plugins/WordPress_Widgets_Api Widgets API
|
||||
* @link https://wordpress.org/support/article/wordpress-widgets/
|
||||
* @link https://developer.wordpress.org/themes/functionality/widgets/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Widgets
|
||||
|
@ -80,7 +80,7 @@ if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
|
||||
$die .= '<p>' . sprintf(
|
||||
/* translators: %s: Codex URL */
|
||||
__( "Need more help? <a href='%s'>We got it</a>." ),
|
||||
__( 'https://codex.wordpress.org/Editing_wp-config.php' )
|
||||
__( 'https://wordpress.org/support/article/editing-wp-config-php/' )
|
||||
) . '</p>';
|
||||
$die .= '<p>' . sprintf(
|
||||
/* translators: %s: wp-config.php */
|
||||
|
Loading…
Reference in New Issue
Block a user