Coding Standards: Fix all `WordPress.WhiteSpace.PrecisionAlignment` issues.
See #47632. Built from https://develop.svn.wordpress.org/trunk@45602 git-svn-id: http://core.svn.wordpress.org/trunk@45413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f69c20859e
commit
87675d288b
|
@ -46,8 +46,8 @@ switch ( $action ) {
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'You can edit the information left in a comment if needed. This is often useful when you notice that a commenter has made a typographical error.' ) . '</p>' .
|
'<p>' . __( 'You can edit the information left in a comment if needed. This is often useful when you notice that a commenter has made a typographical error.' ) . '</p>' .
|
||||||
'<p>' . __( 'You can also moderate the comment from this screen using the Status box, where you can also change the timestamp of the comment.' ) . '</p>',
|
'<p>' . __( 'You can also moderate the comment from this screen using the Status box, where you can also change the timestamp of the comment.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -185,7 +185,7 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'You can manage comments made on your site similar to the way you manage posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the Bulk Actions.' ) . '</p>',
|
'<p>' . __( 'You can manage comments made on your site similar to the way you manage posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the Bulk Actions.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
get_current_screen()->add_help_tab(
|
get_current_screen()->add_help_tab(
|
||||||
|
@ -193,12 +193,12 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'moderating-comments',
|
'id' => 'moderating-comments',
|
||||||
'title' => __( 'Moderating Comments' ),
|
'title' => __( 'Moderating Comments' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'A red bar on the left means the comment is waiting for you to moderate it.' ) . '</p>' .
|
'<p>' . __( 'A red bar on the left means the comment is waiting for you to moderate it.' ) . '</p>' .
|
||||||
'<p>' . __( 'In the <strong>Author</strong> column, in addition to the author’s name, email address, and blog URL, the commenter’s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '</p>' .
|
'<p>' . __( 'In the <strong>Author</strong> column, in addition to the author’s name, email address, and blog URL, the commenter’s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '</p>' .
|
||||||
'<p>' . __( 'In the <strong>Comment</strong> column, hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '</p>' .
|
'<p>' . __( 'In the <strong>Comment</strong> column, hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '</p>' .
|
||||||
'<p>' . __( 'In the <strong>In Response To</strong> column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The View Post link leads to that post on your live site. The small bubble with the number in it shows the number of approved comments that post has received. If there are pending comments, a red notification circle with the number of pending comments is displayed. Clicking the notification circle will filter the comments screen to show only pending comments on that post.' ) . '</p>' .
|
'<p>' . __( 'In the <strong>In Response To</strong> column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The View Post link leads to that post on your live site. The small bubble with the number in it shows the number of approved comments that post has received. If there are pending comments, a red notification circle with the number of pending comments is displayed. Clicking the notification circle will filter the comments screen to show only pending comments on that post.' ) . '</p>' .
|
||||||
'<p>' . __( 'In the <strong>Submitted On</strong> column, the date and time the comment was left on your site appears. Clicking on the date/time link will take you to that comment on your live site.' ) . '</p>' .
|
'<p>' . __( 'In the <strong>Submitted On</strong> column, the date and time the comment was left on your site appears. Clicking on the date/time link will take you to that comment on your live site.' ) . '</p>' .
|
||||||
'<p>' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '</p>',
|
'<p>' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -214,7 +214,7 @@ if ( 'post' == $post_type ) {
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'This screen provides access to all of your posts. You can customize the display of this screen to suit your workflow.' ) . '</p>',
|
'<p>' . __( 'This screen provides access to all of your posts. You can customize the display of this screen to suit your workflow.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
get_current_screen()->add_help_tab(
|
get_current_screen()->add_help_tab(
|
||||||
|
@ -222,13 +222,13 @@ if ( 'post' == $post_type ) {
|
||||||
'id' => 'screen-content',
|
'id' => 'screen-content',
|
||||||
'title' => __( 'Screen Content' ),
|
'title' => __( 'Screen Content' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'You can customize the display of this screen’s contents in a number of ways:' ) . '</p>' .
|
'<p>' . __( 'You can customize the display of this screen’s contents in a number of ways:' ) . '</p>' .
|
||||||
'<ul>' .
|
'<ul>' .
|
||||||
'<li>' . __( 'You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.' ) . '</li>' .
|
'<li>' . __( 'You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.' ) . '</li>' .
|
||||||
'<li>' . __( 'You can filter the list of posts by post status using the text links above the posts list to only show posts with that status. The default view is to show all posts.' ) . '</li>' .
|
'<li>' . __( 'You can filter the list of posts by post status using the text links above the posts list to only show posts with that status. The default view is to show all posts.' ) . '</li>' .
|
||||||
'<li>' . __( 'You can view posts in a simple title list or with an excerpt using the Screen Options tab.' ) . '</li>' .
|
'<li>' . __( 'You can view posts in a simple title list or with an excerpt using the Screen Options tab.' ) . '</li>' .
|
||||||
'<li>' . __( 'You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.' ) . '</li>' .
|
'<li>' . __( 'You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.' ) . '</li>' .
|
||||||
'</ul>',
|
'</ul>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
get_current_screen()->add_help_tab(
|
get_current_screen()->add_help_tab(
|
||||||
|
@ -236,13 +236,13 @@ if ( 'post' == $post_type ) {
|
||||||
'id' => 'action-links',
|
'id' => 'action-links',
|
||||||
'title' => __( 'Available Actions' ),
|
'title' => __( 'Available Actions' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:' ) . '</p>' .
|
'<p>' . __( 'Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:' ) . '</p>' .
|
||||||
'<ul>' .
|
'<ul>' .
|
||||||
'<li>' . __( '<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.' ) . '</li>' .
|
'<li>' . __( '<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.' ) . '</li>' .
|
||||||
'<li>' . __( '<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.' ) . '</li>' .
|
'<li>' . __( '<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.' ) . '</li>' .
|
||||||
'<li>' . __( '<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.' ) . '</li>' .
|
'<li>' . __( '<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.' ) . '</li>' .
|
||||||
'<li>' . __( '<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post’s status.' ) . '</li>' .
|
'<li>' . __( '<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post’s status.' ) . '</li>' .
|
||||||
'</ul>',
|
'</ul>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
get_current_screen()->add_help_tab(
|
get_current_screen()->add_help_tab(
|
||||||
|
@ -250,8 +250,8 @@ if ( 'post' == $post_type ) {
|
||||||
'id' => 'bulk-actions',
|
'id' => 'bulk-actions',
|
||||||
'title' => __( 'Bulk Actions' ),
|
'title' => __( 'Bulk Actions' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'You can also edit or move multiple posts to the trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.' ) . '</p>' .
|
'<p>' . __( 'You can also edit or move multiple posts to the trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.' ) . '</p>' .
|
||||||
'<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.' ) . '</p>',
|
'<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ if ( 'post' == $post_type ) {
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the “Parent” of the other, creating a group of pages.' ) . '</p>',
|
'<p>' . __( 'Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the “Parent” of the other, creating a group of pages.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
get_current_screen()->add_help_tab(
|
get_current_screen()->add_help_tab(
|
||||||
|
@ -275,8 +275,8 @@ if ( 'post' == $post_type ) {
|
||||||
'id' => 'managing-pages',
|
'id' => 'managing-pages',
|
||||||
'title' => __( 'Managing Pages' ),
|
'title' => __( 'Managing Pages' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'Managing pages is very similar to managing posts, and the screens can be customized in the same way.' ) . '</p>' .
|
'<p>' . __( 'Managing pages is very similar to managing posts, and the screens can be customized in the same way.' ) . '</p>' .
|
||||||
'<p>' . __( 'You can also perform the same types of actions, including narrowing the list by using the filters, acting on a page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple pages at once.' ) . '</p>',
|
'<p>' . __( 'You can also perform the same types of actions, including narrowing the list by using the filters, acting on a page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple pages at once.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -26,17 +26,17 @@ function export_add_js() {
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
jQuery(document).ready(function($){
|
jQuery(document).ready(function($){
|
||||||
var form = $('#export-filters'),
|
var form = $('#export-filters'),
|
||||||
filters = form.find('.export-filters');
|
filters = form.find('.export-filters');
|
||||||
filters.hide();
|
filters.hide();
|
||||||
form.find('input:radio').change(function() {
|
form.find('input:radio').change(function() {
|
||||||
filters.slideUp('fast');
|
filters.slideUp('fast');
|
||||||
switch ( $(this).val() ) {
|
switch ( $(this).val() ) {
|
||||||
case 'attachment': $('#attachment-filters').slideDown(); break;
|
case 'attachment': $('#attachment-filters').slideDown(); break;
|
||||||
case 'posts': $('#post-filters').slideDown(); break;
|
case 'posts': $('#post-filters').slideDown(); break;
|
||||||
case 'pages': $('#page-filters').slideDown(); break;
|
case 'pages': $('#page-filters').slideDown(); break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -1950,20 +1950,16 @@ var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* @global string $body_id
|
||||||
|
*/
|
||||||
|
$admin_body_id = isset( $GLOBALS['body_id'] ) ? 'id="' . $GLOBALS['body_id'] . '" ' : '';
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/admin-header.php */
|
/** This filter is documented in wp-admin/admin-header.php */
|
||||||
$admin_body_classes = apply_filters( 'admin_body_class', '' );
|
$admin_body_classes = apply_filters( 'admin_body_class', '' );
|
||||||
$admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
|
$admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
|
||||||
?>
|
?>
|
||||||
<body
|
<body <?php echo $admin_body_id; ?>class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes; ?>">
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* @global string $body_id
|
|
||||||
*/
|
|
||||||
if ( isset( $GLOBALS['body_id'] ) ) {
|
|
||||||
echo ' id="' . $GLOBALS['body_id'] . '"';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes; ?>">
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(function(){
|
(function(){
|
||||||
var c = document.body.className;
|
var c = document.body.className;
|
||||||
|
|
|
@ -525,9 +525,9 @@ function wp_install_maybe_enable_pretty_permalinks() {
|
||||||
$wp_rewrite->set_permalink_structure( $permalink_structure );
|
$wp_rewrite->set_permalink_structure( $permalink_structure );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Flush rules with the hard option to force refresh of the web-server's
|
* Flush rules with the hard option to force refresh of the web-server's
|
||||||
* rewrite config file (e.g. .htaccess or web.config).
|
* rewrite config file (e.g. .htaccess or web.config).
|
||||||
*/
|
*/
|
||||||
$wp_rewrite->flush_rules( true );
|
$wp_rewrite->flush_rules( true );
|
||||||
|
|
||||||
$test_url = '';
|
$test_url = '';
|
||||||
|
@ -539,12 +539,12 @@ function wp_install_maybe_enable_pretty_permalinks() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Send a request to the site, and check whether
|
* Send a request to the site, and check whether
|
||||||
* the 'x-pingback' header is returned as expected.
|
* the 'x-pingback' header is returned as expected.
|
||||||
*
|
*
|
||||||
* Uses wp_remote_get() instead of wp_remote_head() because web servers
|
* Uses wp_remote_get() instead of wp_remote_head() because web servers
|
||||||
* can block head requests.
|
* can block head requests.
|
||||||
*/
|
*/
|
||||||
$response = wp_remote_get( $test_url, array( 'timeout' => 5 ) );
|
$response = wp_remote_get( $test_url, array( 'timeout' => 5 ) );
|
||||||
$x_pingback_header = wp_remote_retrieve_header( $response, 'x-pingback' );
|
$x_pingback_header = wp_remote_retrieve_header( $response, 'x-pingback' );
|
||||||
$pretty_permalinks = $x_pingback_header && $x_pingback_header === get_bloginfo( 'pingback_url' );
|
$pretty_permalinks = $x_pingback_header && $x_pingback_header === get_bloginfo( 'pingback_url' );
|
||||||
|
|
|
@ -53,9 +53,9 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . sprintf( __( 'You can add links here to be displayed on your site, usually using <a href="%s">Widgets</a>. By default, links to several sites in the WordPress community are included as examples.' ), 'widgets.php' ) . '</p>' .
|
'<p>' . sprintf( __( 'You can add links here to be displayed on your site, usually using <a href="%s">Widgets</a>. By default, links to several sites in the WordPress community are included as examples.' ), 'widgets.php' ) . '</p>' .
|
||||||
'<p>' . __( 'Links may be separated into Link Categories; these are different than the categories used on your posts.' ) . '</p>' .
|
'<p>' . __( 'Links may be separated into Link Categories; these are different than the categories used on your posts.' ) . '</p>' .
|
||||||
'<p>' . __( 'You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.' ) . '</p>',
|
'<p>' . __( 'You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
get_current_screen()->add_help_tab(
|
get_current_screen()->add_help_tab(
|
||||||
|
@ -63,7 +63,7 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'deleting-links',
|
'id' => 'deleting-links',
|
||||||
'title' => __( 'Deleting Links' ),
|
'title' => __( 'Deleting Links' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.' ) . '</p>',
|
'<p>' . __( 'If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -47,12 +47,12 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share. There are three options for uploading files:' ) . '</p>' .
|
'<p>' . __( 'You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share. There are three options for uploading files:' ) . '</p>' .
|
||||||
'<ul>' .
|
'<ul>' .
|
||||||
'<li>' . __( '<strong>Drag and drop</strong> your files into the area below. Multiple files are allowed.' ) . '</li>' .
|
'<li>' . __( '<strong>Drag and drop</strong> your files into the area below. Multiple files are allowed.' ) . '</li>' .
|
||||||
'<li>' . __( 'Clicking <strong>Select Files</strong> opens a navigation window showing you files in your operating system. Selecting <strong>Open</strong> after clicking on the file you want activates a progress bar on the uploader screen.' ) . '</li>' .
|
'<li>' . __( 'Clicking <strong>Select Files</strong> opens a navigation window showing you files in your operating system. Selecting <strong>Open</strong> after clicking on the file you want activates a progress bar on the uploader screen.' ) . '</li>' .
|
||||||
'<li>' . __( 'Revert to the <strong>Browser Uploader</strong> by clicking the link below the drag and drop box.' ) . '</li>' .
|
'<li>' . __( 'Revert to the <strong>Browser Uploader</strong> by clicking the link below the drag and drop box.' ) . '</li>' .
|
||||||
'</ul>',
|
'</ul>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
get_current_screen()->set_help_sidebar(
|
get_current_screen()->set_help_sidebar(
|
||||||
|
|
|
@ -84,10 +84,10 @@ switch ( $action ) {
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'This screen allows you to edit fields for metadata in a file within the media library.' ) . '</p>' .
|
'<p>' . __( 'This screen allows you to edit fields for metadata in a file within the media library.' ) . '</p>' .
|
||||||
'<p>' . __( 'For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.' ) . '</p>' .
|
'<p>' . __( 'For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.' ) . '</p>' .
|
||||||
'<p>' . __( 'Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.' ) . '</p>' .
|
'<p>' . __( 'Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.' ) . '</p>' .
|
||||||
'<p>' . __( 'Remember to click Update Media to save metadata entered or changed.' ) . '</p>',
|
'<p>' . __( 'Remember to click Update Media to save metadata entered or changed.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -122,17 +122,17 @@ if ( ! is_file( $real_file ) ) {
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'You can use the plugin editor to make changes to any of your plugins’ individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.' ) . '</p>' .
|
'<p>' . __( 'You can use the plugin editor to make changes to any of your plugins’ individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.' ) . '</p>' .
|
||||||
'<p>' . __( 'Choose a plugin to edit from the dropdown menu and click the Select button. Click once on any file name to load it in the editor, and make your changes. Don’t forget to save your changes (Update File) when you’re finished.' ) . '</p>' .
|
'<p>' . __( 'Choose a plugin to edit from the dropdown menu and click the Select button. Click once on any file name to load it in the editor, and make your changes. Don’t forget to save your changes (Update File) when you’re finished.' ) . '</p>' .
|
||||||
'<p>' . __( 'The Documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Look Up takes you to a web page about that particular function.' ) . '</p>' .
|
'<p>' . __( 'The Documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Look Up takes you to a web page about that particular function.' ) . '</p>' .
|
||||||
'<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>' .
|
'<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>' .
|
||||||
'<ul>' .
|
'<ul>' .
|
||||||
'<li id="editor-keyboard-trap-help-2">' . __( 'In the editing area, the Tab key enters a tab character.' ) . '</li>' .
|
'<li id="editor-keyboard-trap-help-2">' . __( 'In the editing area, the Tab key enters a tab character.' ) . '</li>' .
|
||||||
'<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>' .
|
'<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>' .
|
||||||
'<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>' .
|
'<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>' .
|
||||||
'</ul>' .
|
'</ul>' .
|
||||||
'<p>' . __( 'If you want to make changes but don’t want them to be overwritten when the plugin is updated, you may be ready to think about writing your own plugin. For information on how to edit plugins, write your own from scratch, or just better understand their anatomy, check out the links below.' ) . '</p>' .
|
'<p>' . __( 'If you want to make changes but don’t want them to be overwritten when the plugin is updated, you may be ready to think about writing your own plugin. For information on how to edit plugins, write your own from scratch, or just better understand their anatomy, check out the links below.' ) . '</p>' .
|
||||||
( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ),
|
( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -83,8 +83,8 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . sprintf( __( 'Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official <a href="%s">WordPress Plugin Directory</a> are compatible with the license WordPress uses.' ), __( 'https://wordpress.org/plugins/' ) ) . '</p>' .
|
'<p>' . sprintf( __( 'Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official <a href="%s">WordPress Plugin Directory</a> are compatible with the license WordPress uses.' ), __( 'https://wordpress.org/plugins/' ) ) . '</p>' .
|
||||||
'<p>' . __( 'You can find new plugins to install by searching or browsing the directory right here in your own Plugins section.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>',
|
'<p>' . __( 'You can find new plugins to install by searching or browsing the directory right here in your own Plugins section.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>',
|
||||||
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -93,10 +93,10 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'adding-plugins',
|
'id' => 'adding-plugins',
|
||||||
'title' => __( 'Adding Plugins' ),
|
'title' => __( 'Adding Plugins' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'If you know what you’re looking for, Search is your best bet. The Search screen has options to search the WordPress Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting popular tags. Tags in larger type mean more plugins have been labeled with that tag.' ) . '</p>' .
|
'<p>' . __( 'If you know what you’re looking for, Search is your best bet. The Search screen has options to search the WordPress Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting popular tags. Tags in larger type mean more plugins have been labeled with that tag.' ) . '</p>' .
|
||||||
'<p>' . __( 'If you just want to get an idea of what’s available, you can browse Featured and Popular plugins by using the links above the plugins list. These sections rotate regularly.' ) . '</p>' .
|
'<p>' . __( 'If you just want to get an idea of what’s available, you can browse Featured and Popular plugins by using the links above the plugins list. These sections rotate regularly.' ) . '</p>' .
|
||||||
'<p>' . __( 'You can also browse a user’s favorite plugins, by using the Favorites link above the plugins list and entering their WordPress.org username.' ) . '</p>' .
|
'<p>' . __( 'You can also browse a user’s favorite plugins, by using the Favorites link above the plugins list and entering their WordPress.org username.' ) . '</p>' .
|
||||||
'<p>' . __( 'If you want to install a plugin that you’ve downloaded elsewhere, click the Upload Plugin button above the plugins list. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.' ) . '</p>',
|
'<p>' . __( 'If you want to install a plugin that you’ve downloaded elsewhere, click the Upload Plugin button above the plugins list. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -438,11 +438,11 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.' ) . '</p>' .
|
'<p>' . __( 'Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.' ) . '</p>' .
|
||||||
'<p>' . __( 'The search for installed plugins will search for terms in their name, description, or author.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
|
'<p>' . __( 'The search for installed plugins will search for terms in their name, description, or author.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
|
||||||
'<p>' . sprintf(
|
'<p>' . sprintf(
|
||||||
/* translators: %s: WordPress Plugin Directory URL */
|
/* translators: %s: WordPress Plugin Directory URL */
|
||||||
__( 'If you would like to see more plugins to choose from, click on the “Add New” button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ),
|
__( 'If you would like to see more plugins to choose from, click on the “Add New” button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ),
|
||||||
__( 'https://wordpress.org/plugins/' )
|
__( 'https://wordpress.org/plugins/' )
|
||||||
) . '</p>',
|
) . '</p>',
|
||||||
)
|
)
|
||||||
|
@ -452,10 +452,10 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'compatibility-problems',
|
'id' => 'compatibility-problems',
|
||||||
'title' => __( 'Troubleshooting' ),
|
'title' => __( 'Troubleshooting' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin’s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' .
|
'<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin’s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' .
|
||||||
'<p>' . sprintf(
|
'<p>' . sprintf(
|
||||||
/* translators: WP_PLUGIN_DIR constant value */
|
/* translators: WP_PLUGIN_DIR constant value */
|
||||||
__( 'If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ),
|
__( 'If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ),
|
||||||
'<code>' . WP_PLUGIN_DIR . '</code>'
|
'<code>' . WP_PLUGIN_DIR . '</code>'
|
||||||
) . '</p>',
|
) . '</p>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -55,8 +55,8 @@ if ( isset( $_POST['deletepost'] ) ) {
|
||||||
|
|
||||||
$sendback = wp_get_referer();
|
$sendback = wp_get_referer();
|
||||||
if ( ! $sendback ||
|
if ( ! $sendback ||
|
||||||
strpos( $sendback, 'post.php' ) !== false ||
|
strpos( $sendback, 'post.php' ) !== false ||
|
||||||
strpos( $sendback, 'post-new.php' ) !== false ) {
|
strpos( $sendback, 'post-new.php' ) !== false ) {
|
||||||
if ( 'attachment' == $post_type ) {
|
if ( 'attachment' == $post_type ) {
|
||||||
$sendback = admin_url( 'upload.php' );
|
$sendback = admin_url( 'upload.php' );
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -223,9 +223,9 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'All the files you’ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the Screen Options tab to customize the display of this screen.' ) . '</p>' .
|
'<p>' . __( 'All the files you’ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the Screen Options tab to customize the display of this screen.' ) . '</p>' .
|
||||||
'<p>' . __( 'You can narrow the list by file type/status or by date using the dropdown menus above the media table.' ) . '</p>' .
|
'<p>' . __( 'You can narrow the list by file type/status or by date using the dropdown menus above the media table.' ) . '</p>' .
|
||||||
'<p>' . __( 'You can view your media in a simple visual grid or a list with columns. Switch between these views using the icons to the left above the media.' ) . '</p>',
|
'<p>' . __( 'You can view your media in a simple visual grid or a list with columns. Switch between these views using the icons to the left above the media.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
get_current_screen()->add_help_tab(
|
get_current_screen()->add_help_tab(
|
||||||
|
@ -233,7 +233,7 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'actions-links',
|
'id' => 'actions-links',
|
||||||
'title' => __( 'Available Actions' ),
|
'title' => __( 'Available Actions' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'Hovering over a row reveals action links: Edit, Delete Permanently, and View. Clicking Edit or on the media file’s name displays a simple screen to edit that individual file’s metadata. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). View will take you to the display page for that file.' ) . '</p>',
|
'<p>' . __( 'Hovering over a row reveals action links: Edit, Delete Permanently, and View. Clicking Edit or on the media file’s name displays a simple screen to edit that individual file’s metadata. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). View will take you to the display page for that file.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
get_current_screen()->add_help_tab(
|
get_current_screen()->add_help_tab(
|
||||||
|
@ -241,7 +241,7 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'attaching-files',
|
'id' => 'attaching-files',
|
||||||
'title' => __( 'Attaching Files' ),
|
'title' => __( 'Attaching Files' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'If a media file has not been attached to any content, you will see that in the Uploaded To column, and can click on Attach to launch a small popup that will allow you to search for existing content and attach the file.' ) . '</p>',
|
'<p>' . __( 'If a media file has not been attached to any content, you will see that in the Uploaded To column, and can click on Attach to launch a small popup that will allow you to search for existing content and attach the file.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -240,13 +240,13 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'user-roles',
|
'id' => 'user-roles',
|
||||||
'title' => __( 'User Roles' ),
|
'title' => __( 'User Roles' ),
|
||||||
'content' => '<p>' . __( 'Here is a basic overview of the different user roles and the permissions associated with each one:' ) . '</p>' .
|
'content' => '<p>' . __( 'Here is a basic overview of the different user roles and the permissions associated with each one:' ) . '</p>' .
|
||||||
'<ul>' .
|
'<ul>' .
|
||||||
'<li>' . __( 'Subscribers can read comments/comment/receive newsletters, etc. but cannot create regular site content.' ) . '</li>' .
|
'<li>' . __( 'Subscribers can read comments/comment/receive newsletters, etc. but cannot create regular site content.' ) . '</li>' .
|
||||||
'<li>' . __( 'Contributors can write and manage their posts but not publish posts or upload media files.' ) . '</li>' .
|
'<li>' . __( 'Contributors can write and manage their posts but not publish posts or upload media files.' ) . '</li>' .
|
||||||
'<li>' . __( 'Authors can publish and manage their own posts, and are able to upload files.' ) . '</li>' .
|
'<li>' . __( 'Authors can publish and manage their own posts, and are able to upload files.' ) . '</li>' .
|
||||||
'<li>' . __( 'Editors can publish posts, manage posts as well as manage other people’s posts, etc.' ) . '</li>' .
|
'<li>' . __( 'Editors can publish posts, manage posts as well as manage other people’s posts, etc.' ) . '</li>' .
|
||||||
'<li>' . __( 'Administrators have access to all the administration features.' ) . '</li>' .
|
'<li>' . __( 'Administrators have access to all the administration features.' ) . '</li>' .
|
||||||
'</ul>',
|
'</ul>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __( 'Overview' ),
|
'title' => __( 'Overview' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.' ) . '</p>
|
'<p>' . __( 'Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.' ) . '</p>
|
||||||
<p>' . __( 'The Available Widgets section contains all the widgets you can choose from. Once you drag a widget into a sidebar, it will open to allow you to configure its settings. When you are happy with the widget settings, click the Save button and the widget will go live on your site. If you click Delete, it will remove the widget.' ) . '</p>',
|
<p>' . __( 'The Available Widgets section contains all the widgets you can choose from. Once you drag a widget into a sidebar, it will open to allow you to configure its settings. When you are happy with the widget settings, click the Save button and the widget will go live on your site. If you click Delete, it will remove the widget.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -63,7 +63,7 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'removing-reusing',
|
'id' => 'removing-reusing',
|
||||||
'title' => __( 'Removing and Reusing' ),
|
'title' => __( 'Removing and Reusing' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'If you want to remove the widget but save its setting for possible future use, just drag it into the Inactive Widgets area. You can add them back anytime from there. This is especially helpful when you switch to a theme with fewer or different widget areas.' ) . '</p>
|
'<p>' . __( 'If you want to remove the widget but save its setting for possible future use, just drag it into the Inactive Widgets area. You can add them back anytime from there. This is especially helpful when you switch to a theme with fewer or different widget areas.' ) . '</p>
|
||||||
<p>' . __( 'Widgets may be used multiple times. You can give each widget a title, to display on your site, but it’s not required.' ) . '</p>
|
<p>' . __( 'Widgets may be used multiple times. You can give each widget a title, to display on your site, but it’s not required.' ) . '</p>
|
||||||
<p>' . __( 'Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.' ) . '</p>',
|
<p>' . __( 'Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.' ) . '</p>',
|
||||||
)
|
)
|
||||||
|
@ -73,8 +73,8 @@ get_current_screen()->add_help_tab(
|
||||||
'id' => 'missing-widgets',
|
'id' => 'missing-widgets',
|
||||||
'title' => __( 'Missing Widgets' ),
|
'title' => __( 'Missing Widgets' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<p>' . __( 'Many themes show some sidebar widgets by default until you edit your sidebars, but they are not automatically displayed in your sidebar management tool. After you make your first widget change, you can re-add the default widgets by adding them from the Available Widgets area.' ) . '</p>' .
|
'<p>' . __( 'Many themes show some sidebar widgets by default until you edit your sidebars, but they are not automatically displayed in your sidebar management tool. After you make your first widget change, you can re-add the default widgets by adding them from the Available Widgets area.' ) . '</p>' .
|
||||||
'<p>' . __( 'When changing themes, there is often some variation in the number and setup of widget areas/sidebars and sometimes these conflicts make the transition a bit less smooth. If you changed themes and seem to be missing widgets, scroll down on this screen to the Inactive Widgets area, where all of your widgets and their settings will have been saved.' ) . '</p>',
|
'<p>' . __( 'When changing themes, there is often some variation in the number and setup of widget areas/sidebars and sometimes these conflicts make the transition a bit less smooth. If you changed themes and seem to be missing widgets, scroll down on this screen to the Inactive Widgets area, where all of your widgets and their settings will have been saved.' ) . '</p>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -188,7 +188,7 @@ if ( ! function_exists( 'twentyeleven_setup' ) ) :
|
||||||
*
|
*
|
||||||
* @param int The default header image height in pixels. Default 288.
|
* @param int The default header image height in pixels. Default 288.
|
||||||
*/
|
*/
|
||||||
'height' => apply_filters( 'twentyeleven_header_image_height', 288 ),
|
'height' => apply_filters( 'twentyeleven_header_image_height', 288 ),
|
||||||
// Support flexible heights.
|
// Support flexible heights.
|
||||||
'flex-height' => true,
|
'flex-height' => true,
|
||||||
// Random image rotation by default.
|
// Random image rotation by default.
|
||||||
|
|
|
@ -171,7 +171,7 @@ if ( ! function_exists( 'twentyten_setup' ) ) :
|
||||||
*
|
*
|
||||||
* @param int The default header image height in pixels. Default 198.
|
* @param int The default header image height in pixels. Default 198.
|
||||||
*/
|
*/
|
||||||
'height' => apply_filters( 'twentyten_header_image_height', 198 ),
|
'height' => apply_filters( 'twentyten_header_image_height', 198 ),
|
||||||
// Support flexible heights.
|
// Support flexible heights.
|
||||||
'flex-height' => true,
|
'flex-height' => true,
|
||||||
// Don't support text inside the header image.
|
// Don't support text inside the header image.
|
||||||
|
|
|
@ -1771,8 +1771,8 @@ final class _WP_Editors {
|
||||||
<div class="river-waiting">
|
<div class="river-waiting">
|
||||||
<span class="spinner"></span>
|
<span class="spinner"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="submitbox">
|
<div class="submitbox">
|
||||||
<div id="wp-link-cancel">
|
<div id="wp-link-cancel">
|
||||||
|
|
|
@ -2275,17 +2275,17 @@ function comment_form( $args = array(), $post_id = null ) {
|
||||||
$html5 = 'html5' === $args['format'];
|
$html5 = 'html5' === $args['format'];
|
||||||
$fields = array(
|
$fields = array(
|
||||||
'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
|
'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
|
||||||
'<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" maxlength="245"' . $html_req . ' /></p>',
|
'<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" maxlength="245"' . $html_req . ' /></p>',
|
||||||
'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
|
'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
|
||||||
'<input id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" maxlength="100" aria-describedby="email-notes"' . $html_req . ' /></p>',
|
'<input id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" maxlength="100" aria-describedby="email-notes"' . $html_req . ' /></p>',
|
||||||
'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' .
|
'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' .
|
||||||
'<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>',
|
'<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>',
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) && get_option( 'show_comments_cookies_opt_in' ) ) {
|
if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) && get_option( 'show_comments_cookies_opt_in' ) ) {
|
||||||
$consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';
|
$consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';
|
||||||
$fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .
|
$fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .
|
||||||
'<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>';
|
'<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>';
|
||||||
|
|
||||||
// Ensure that the passed fields include cookies consent.
|
// Ensure that the passed fields include cookies consent.
|
||||||
if ( isset( $args['fields'] ) && ! isset( $args['fields']['cookies'] ) ) {
|
if ( isset( $args['fields'] ) && ! isset( $args['fields']['cookies'] ) ) {
|
||||||
|
|
|
@ -100,7 +100,7 @@ function _mb_substr( $str, $start, $length = null, $encoding = null ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$regex = '/(
|
$regex = '/(
|
||||||
[\x00-\x7F] # single-byte sequences 0xxxxxxx
|
[\x00-\x7F] # single-byte sequences 0xxxxxxx
|
||||||
| [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx
|
| [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx
|
||||||
| \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2
|
| \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2
|
||||||
| [\xE1-\xEC][\x80-\xBF]{2}
|
| [\xE1-\xEC][\x80-\xBF]{2}
|
||||||
|
@ -183,7 +183,7 @@ function _mb_strlen( $str, $encoding = null ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$regex = '/(?:
|
$regex = '/(?:
|
||||||
[\x00-\x7F] # single-byte sequences 0xxxxxxx
|
[\x00-\x7F] # single-byte sequences 0xxxxxxx
|
||||||
| [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx
|
| [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx
|
||||||
| \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2
|
| \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2
|
||||||
| [\xE1-\xEC][\x80-\xBF]{2}
|
| [\xE1-\xEC][\x80-\xBF]{2}
|
||||||
|
|
|
@ -247,8 +247,8 @@ function user_can_edit_post($user_id, $post_id, $blog_id = 1) {
|
||||||
$post_author_data = get_userdata($post->post_author);
|
$post_author_data = get_userdata($post->post_author);
|
||||||
|
|
||||||
if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2))
|
if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2))
|
||||||
|| ($author_data->user_level > $post_author_data->user_level)
|
|| ($author_data->user_level > $post_author_data->user_level)
|
||||||
|| ($author_data->user_level >= 10) ) {
|
|| ($author_data->user_level >= 10) ) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
@ -393,8 +393,8 @@ function user_can_edit_user($user_id, $other_user) {
|
||||||
* @param int $show_updated Optional. Whether to show last updated timestamp
|
* @param int $show_updated Optional. Whether to show last updated timestamp
|
||||||
*/
|
*/
|
||||||
function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
|
function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
|
||||||
$show_description = true, $show_rating = false,
|
$show_description = true, $show_rating = false,
|
||||||
$limit = -1, $show_updated = 0) {
|
$limit = -1, $show_updated = 0) {
|
||||||
_deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
|
_deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
|
||||||
|
|
||||||
$cat_id = -1;
|
$cat_id = -1;
|
||||||
|
@ -565,7 +565,7 @@ function get_linksbyname_withrating($cat_name = "noname", $before = '', $after =
|
||||||
* @param int $show_updated Whether to show last updated timestamp
|
* @param int $show_updated Whether to show last updated timestamp
|
||||||
*/
|
*/
|
||||||
function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
|
function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
|
||||||
$orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
|
$orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
|
||||||
_deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
|
_deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
|
||||||
|
|
||||||
get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
|
get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
|
||||||
|
@ -613,8 +613,8 @@ function get_autotoggle($id = 0) {
|
||||||
* @return false|null
|
* @return false|null
|
||||||
*/
|
*/
|
||||||
function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
|
function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
|
||||||
$optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
|
$optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
|
||||||
$recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
|
$recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
|
||||||
_deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' );
|
_deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' );
|
||||||
|
|
||||||
$query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
|
$query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
|
||||||
|
|
|
@ -844,7 +844,7 @@ function shortcode_unautop( $pee ) {
|
||||||
$tagregexp = join( '|', array_map( 'preg_quote', array_keys( $shortcode_tags ) ) );
|
$tagregexp = join( '|', array_map( 'preg_quote', array_keys( $shortcode_tags ) ) );
|
||||||
$spaces = wp_spaces_regexp();
|
$spaces = wp_spaces_regexp();
|
||||||
|
|
||||||
// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
|
// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound,WordPress.WhiteSpace.PrecisionAlignment.Found -- don't remove regex indentation
|
||||||
$pattern =
|
$pattern =
|
||||||
'/'
|
'/'
|
||||||
. '<p>' // Opening paragraph
|
. '<p>' // Opening paragraph
|
||||||
|
@ -2903,8 +2903,9 @@ function make_clickable( $text ) {
|
||||||
)*
|
)*
|
||||||
)
|
)
|
||||||
(\)?) # 3: Trailing closing parenthesis (for parethesis balancing post processing)
|
(\)?) # 3: Trailing closing parenthesis (for parethesis balancing post processing)
|
||||||
~xS'; // The regex is a non-anchored pattern and does not have a single fixed starting character.
|
~xS';
|
||||||
// Tell PCRE to spend more time optimizing since, when used on a page load, it will probably be used several times.
|
// The regex is a non-anchored pattern and does not have a single fixed starting character.
|
||||||
|
// Tell PCRE to spend more time optimizing since, when used on a page load, it will probably be used several times.
|
||||||
|
|
||||||
$ret = preg_replace_callback( $url_clickable, '_make_url_clickable_cb', $ret );
|
$ret = preg_replace_callback( $url_clickable, '_make_url_clickable_cb', $ret );
|
||||||
|
|
||||||
|
|
|
@ -3218,7 +3218,7 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
|
||||||
|
|
||||||
-webkit-box-shadow: 0 1px 0 #ccc;
|
-webkit-box-shadow: 0 1px 0 #ccc;
|
||||||
box-shadow: 0 1px 0 #ccc;
|
box-shadow: 0 1px 0 #ccc;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button.button-large {
|
.button.button-large {
|
||||||
|
@ -3244,11 +3244,11 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
|
||||||
.button:active {
|
.button:active {
|
||||||
background: #eee;
|
background: #eee;
|
||||||
border-color: #999;
|
border-color: #999;
|
||||||
-webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
|
-webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
|
||||||
box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
|
box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
|
||||||
-webkit-transform: translateY(1px);
|
-webkit-transform: translateY(1px);
|
||||||
-ms-transform: translateY(1px);
|
-ms-transform: translateY(1px);
|
||||||
transform: translateY(1px);
|
transform: translateY(1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -2934,9 +2934,9 @@ function _reset_front_page_settings_for_post( $post_id ) {
|
||||||
$post = get_post( $post_id );
|
$post = get_post( $post_id );
|
||||||
if ( 'page' == $post->post_type ) {
|
if ( 'page' == $post->post_type ) {
|
||||||
/*
|
/*
|
||||||
* If the page is defined in option page_on_front or post_for_posts,
|
* If the page is defined in option page_on_front or post_for_posts,
|
||||||
* adjust the corresponding options.
|
* adjust the corresponding options.
|
||||||
*/
|
*/
|
||||||
if ( get_option( 'page_on_front' ) == $post->ID ) {
|
if ( get_option( 'page_on_front' ) == $post->ID ) {
|
||||||
update_option( 'show_on_front', 'posts' );
|
update_option( 'show_on_front', 'posts' );
|
||||||
update_option( 'page_on_front', 0 );
|
update_option( 'page_on_front', 0 );
|
||||||
|
|
|
@ -18,7 +18,7 @@ _deprecated_file(
|
||||||
<div id="sidebar" role="complementary">
|
<div id="sidebar" role="complementary">
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
/* Widgetized sidebar, if you have the plugin installed. */
|
/* Widgetized sidebar, if you have the plugin installed. */
|
||||||
if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar() ) :
|
if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar() ) :
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
|
@ -35,7 +35,7 @@ _deprecated_file(
|
||||||
if ( is_404() || is_category() || is_day() || is_month() ||
|
if ( is_404() || is_category() || is_day() || is_month() ||
|
||||||
is_year() || is_search() || is_paged() ) :
|
is_year() || is_search() || is_paged() ) :
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
<?php if ( is_404() ) : /* If this is a 404 page */ ?>
|
<?php if ( is_404() ) : /* If this is a 404 page */ ?>
|
||||||
<?php elseif ( is_category() ) : /* If this is a category archive */ ?>
|
<?php elseif ( is_category() ) : /* If this is a category archive */ ?>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-45601';
|
$wp_version = '5.3-alpha-45602';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -1622,10 +1622,10 @@ class wpdb {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* It's possible ext/mysqli is misconfigured. Fall back to ext/mysql if:
|
* It's possible ext/mysqli is misconfigured. Fall back to ext/mysql if:
|
||||||
* - We haven't previously connected, and
|
* - We haven't previously connected, and
|
||||||
* - WP_USE_EXT_MYSQL isn't set to false, and
|
* - WP_USE_EXT_MYSQL isn't set to false, and
|
||||||
* - ext/mysql is loaded.
|
* - ext/mysql is loaded.
|
||||||
*/
|
*/
|
||||||
$attempt_fallback = true;
|
$attempt_fallback = true;
|
||||||
|
|
||||||
if ( $this->has_connected ) {
|
if ( $this->has_connected ) {
|
||||||
|
|
Loading…
Reference in New Issue