Changeset 45602
- Timestamp:
- 07/05/2019 05:20:52 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/comment.php
r45583 r45602 47 47 'title' => __( 'Overview' ), 48 48 'content' => 49 50 49 '<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>' . 50 '<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>', 51 51 ) 52 52 ); -
trunk/src/wp-admin/edit-comments.php
r45599 r45602 186 186 'title' => __( 'Overview' ), 187 187 'content' => 188 188 '<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>', 189 189 ) 190 190 ); … … 194 194 'title' => __( 'Moderating Comments' ), 195 195 'content' => 196 197 198 199 200 201 196 '<p>' . __( 'A red bar on the left means the comment is waiting for you to moderate it.' ) . '</p>' . 197 '<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>' . 198 '<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>' . 199 '<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>' . 200 '<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>' . 201 '<p>' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '</p>', 202 202 ) 203 203 ); -
trunk/src/wp-admin/edit.php
r45599 r45602 215 215 'title' => __( 'Overview' ), 216 216 'content' => 217 217 '<p>' . __( 'This screen provides access to all of your posts. You can customize the display of this screen to suit your workflow.' ) . '</p>', 218 218 ) 219 219 ); … … 223 223 'title' => __( 'Screen Content' ), 224 224 'content' => 225 226 227 228 229 230 231 225 '<p>' . __( 'You can customize the display of this screen’s contents in a number of ways:' ) . '</p>' . 226 '<ul>' . 227 '<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>' . 228 '<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>' . 229 '<li>' . __( 'You can view posts in a simple title list or with an excerpt using the Screen Options tab.' ) . '</li>' . 230 '<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>' . 231 '</ul>', 232 232 ) 233 233 ); … … 237 237 'title' => __( 'Available Actions' ), 238 238 'content' => 239 240 241 242 243 244 245 239 '<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>' . 240 '<ul>' . 241 '<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>' . 242 '<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>' . 243 '<li>' . __( '<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.' ) . '</li>' . 244 '<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>' . 245 '</ul>', 246 246 ) 247 247 ); … … 251 251 'title' => __( 'Bulk Actions' ), 252 252 'content' => 253 254 253 '<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>' . 254 '<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>', 255 255 ) 256 256 ); … … 268 268 'title' => __( 'Overview' ), 269 269 'content' => 270 270 '<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>', 271 271 ) 272 272 ); … … 276 276 'title' => __( 'Managing Pages' ), 277 277 'content' => 278 279 278 '<p>' . __( 'Managing pages is very similar to managing posts, and the screens can be customized in the same way.' ) . '</p>' . 279 '<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>', 280 280 ) 281 281 ); -
trunk/src/wp-admin/export.php
r45140 r45602 27 27 <script type="text/javascript"> 28 28 jQuery(document).ready(function($){ 29 30 31 32 29 var form = $('#export-filters'), 30 filters = form.find('.export-filters'); 31 filters.hide(); 32 form.find('input:radio').change(function() { 33 33 filters.slideUp('fast'); 34 34 switch ( $(this).val() ) { … … 37 37 case 'pages': $('#page-filters').slideDown(); break; 38 38 } 39 39 }); 40 40 }); 41 41 </script> -
trunk/src/wp-admin/includes/template.php
r45599 r45602 1951 1951 </head> 1952 1952 <?php 1953 /** 1954 * @global string $body_id 1955 */ 1956 $admin_body_id = isset( $GLOBALS['body_id'] ) ? 'id="' . $GLOBALS['body_id'] . '" ' : ''; 1957 1953 1958 /** This filter is documented in wp-admin/admin-header.php */ 1954 1959 $admin_body_classes = apply_filters( 'admin_body_class', '' ); 1955 1960 $admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class ); 1956 1961 ?> 1957 <body 1958 <?php 1959 /** 1960 * @global string $body_id 1961 */ 1962 if ( isset( $GLOBALS['body_id'] ) ) { 1963 echo ' id="' . $GLOBALS['body_id'] . '"'; 1964 } 1965 ?> 1966 class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes; ?>"> 1962 <body <?php echo $admin_body_id; ?>class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes; ?>"> 1967 1963 <script type="text/javascript"> 1968 1964 (function(){ -
trunk/src/wp-admin/includes/upgrade.php
r45583 r45602 526 526 527 527 /* 528 529 530 528 * Flush rules with the hard option to force refresh of the web-server's 529 * rewrite config file (e.g. .htaccess or web.config). 530 */ 531 531 $wp_rewrite->flush_rules( true ); 532 532 … … 540 540 541 541 /* 542 543 544 545 546 547 542 * Send a request to the site, and check whether 543 * the 'x-pingback' header is returned as expected. 544 * 545 * Uses wp_remote_get() instead of wp_remote_head() because web servers 546 * can block head requests. 547 */ 548 548 $response = wp_remote_get( $test_url, array( 'timeout' => 5 ) ); 549 549 $x_pingback_header = wp_remote_retrieve_header( $response, 'x-pingback' ); -
trunk/src/wp-admin/link-manager.php
r45599 r45602 54 54 'title' => __( 'Overview' ), 55 55 'content' => 56 57 58 56 '<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>' . 57 '<p>' . __( 'Links may be separated into Link Categories; these are different than the categories used on your posts.' ) . '</p>' . 58 '<p>' . __( 'You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.' ) . '</p>', 59 59 ) 60 60 ); … … 64 64 'title' => __( 'Deleting Links' ), 65 65 'content' => 66 66 '<p>' . __( 'If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.' ) . '</p>', 67 67 ) 68 68 ); -
trunk/src/wp-admin/media-new.php
r45140 r45602 48 48 'title' => __( 'Overview' ), 49 49 'content' => 50 51 52 53 54 55 50 '<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>' . 51 '<ul>' . 52 '<li>' . __( '<strong>Drag and drop</strong> your files into the area below. Multiple files are allowed.' ) . '</li>' . 53 '<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>' . 54 '<li>' . __( 'Revert to the <strong>Browser Uploader</strong> by clicking the link below the drag and drop box.' ) . '</li>' . 55 '</ul>', 56 56 ) 57 57 ); -
trunk/src/wp-admin/media.php
r45583 r45602 85 85 'title' => __( 'Overview' ), 86 86 'content' => 87 88 89 90 87 '<p>' . __( 'This screen allows you to edit fields for metadata in a file within the media library.' ) . '</p>' . 88 '<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>' . 89 '<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>' . 90 '<p>' . __( 'Remember to click Update Media to save metadata entered or changed.' ) . '</p>', 91 91 ) 92 92 ); -
trunk/src/wp-admin/plugin-editor.php
r45431 r45602 123 123 'title' => __( 'Overview' ), 124 124 'content' => 125 126 127 128 129 130 131 132 133 134 135 125 '<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>' . 126 '<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>' . 127 '<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>' . 128 '<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>' . 129 '<ul>' . 130 '<li id="editor-keyboard-trap-help-2">' . __( 'In the editing area, the Tab key enters a tab character.' ) . '</li>' . 131 '<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>' . 132 '<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>' . 133 '</ul>' . 134 '<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>' . 135 ( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ), 136 136 ) 137 137 ); -
trunk/src/wp-admin/plugin-install.php
r45140 r45602 84 84 'title' => __( 'Overview' ), 85 85 'content' => 86 87 86 '<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>' . 87 '<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>', 88 88 89 89 ) … … 94 94 'title' => __( 'Adding Plugins' ), 95 95 'content' => 96 97 98 99 96 '<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>' . 97 '<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>' . 98 '<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>' . 99 '<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>', 100 100 ) 101 101 ); -
trunk/src/wp-admin/plugins.php
r45599 r45602 439 439 'title' => __( 'Overview' ), 440 440 'content' => 441 442 441 '<p>' . __( 'Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.' ) . '</p>' . 442 '<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>' . 443 443 '<p>' . sprintf( 444 444 /* translators: %s: WordPress Plugin Directory URL */ 445 445 __( '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!' ), 446 446 __( 'https://wordpress.org/plugins/' ) 447 447 ) . '</p>', … … 453 453 'title' => __( 'Troubleshooting' ), 454 454 'content' => 455 455 '<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>' . 456 456 '<p>' . sprintf( 457 457 /* translators: WP_PLUGIN_DIR constant value */ 458 458 __( '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.' ), 459 459 '<code>' . WP_PLUGIN_DIR . '</code>' 460 460 ) . '</p>', -
trunk/src/wp-admin/post.php
r45583 r45602 56 56 $sendback = wp_get_referer(); 57 57 if ( ! $sendback || 58 59 58 strpos( $sendback, 'post.php' ) !== false || 59 strpos( $sendback, 'post-new.php' ) !== false ) { 60 60 if ( 'attachment' == $post_type ) { 61 61 $sendback = admin_url( 'upload.php' ); -
trunk/src/wp-admin/privacy-policy-guide.php
r45448 r45602 27 27 <div class="wrap"> 28 28 <h1><?php echo esc_html( $title ); ?></h1> 29 29 30 30 <div class="wp-privacy-policy-guide"> 31 31 <?php WP_Privacy_Policy_Content::privacy_policy_guide(); ?> -
trunk/src/wp-admin/upload.php
r45599 r45602 224 224 'title' => __( 'Overview' ), 225 225 'content' => 226 227 228 226 '<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>' . 227 '<p>' . __( 'You can narrow the list by file type/status or by date using the dropdown menus above the media table.' ) . '</p>' . 228 '<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>', 229 229 ) 230 230 ); … … 234 234 'title' => __( 'Available Actions' ), 235 235 'content' => 236 236 '<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>', 237 237 ) 238 238 ); … … 242 242 'title' => __( 'Attaching Files' ), 243 243 'content' => 244 244 '<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>', 245 245 ) 246 246 ); -
trunk/src/wp-admin/user-new.php
r45542 r45602 241 241 'title' => __( 'User Roles' ), 242 242 'content' => '<p>' . __( 'Here is a basic overview of the different user roles and the permissions associated with each one:' ) . '</p>' . 243 244 245 246 247 248 249 243 '<ul>' . 244 '<li>' . __( 'Subscribers can read comments/comment/receive newsletters, etc. but cannot create regular site content.' ) . '</li>' . 245 '<li>' . __( 'Contributors can write and manage their posts but not publish posts or upload media files.' ) . '</li>' . 246 '<li>' . __( 'Authors can publish and manage their own posts, and are able to upload files.' ) . '</li>' . 247 '<li>' . __( 'Editors can publish posts, manage posts as well as manage other people’s posts, etc.' ) . '</li>' . 248 '<li>' . __( 'Administrators have access to all the administration features.' ) . '</li>' . 249 '</ul>', 250 250 ) 251 251 ); -
trunk/src/wp-admin/widgets.php
r45583 r45602 55 55 'title' => __( 'Overview' ), 56 56 'content' => 57 57 '<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> 58 58 <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>', 59 59 ) … … 64 64 'title' => __( 'Removing and Reusing' ), 65 65 'content' => 66 66 '<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> 67 67 <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> 68 68 <p>' . __( 'Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.' ) . '</p>', … … 74 74 'title' => __( 'Missing Widgets' ), 75 75 'content' => 76 77 76 '<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>' . 77 '<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>', 78 78 ) 79 79 ); -
trunk/src/wp-content/themes/twentyeleven/functions.php
r45256 r45602 189 189 * @param int The default header image height in pixels. Default 288. 190 190 */ 191 'height'=> apply_filters( 'twentyeleven_header_image_height', 288 ),191 'height' => apply_filters( 'twentyeleven_header_image_height', 288 ), 192 192 // Support flexible heights. 193 193 'flex-height' => true, -
trunk/src/wp-content/themes/twentyten/functions.php
r45256 r45602 172 172 * @param int The default header image height in pixels. Default 198. 173 173 */ 174 'height'=> apply_filters( 'twentyten_header_image_height', 198 ),174 'height' => apply_filters( 'twentyten_header_image_height', 198 ), 175 175 // Support flexible heights. 176 176 'flex-height' => true, -
trunk/src/wp-includes/class-wp-editor.php
r45590 r45602 1772 1772 <span class="spinner"></span> 1773 1773 </div> 1774 1775 1774 </div> 1775 </div> 1776 1776 </div> 1777 1777 <div class="submitbox"> -
trunk/src/wp-includes/comment-template.php
r45599 r45602 2276 2276 $fields = array( 2277 2277 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . 2278 2278 '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" maxlength="245"' . $html_req . ' /></p>', 2279 2279 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . 2280 2280 '<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>', 2281 2281 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' . 2282 2282 '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>', 2283 2283 ); 2284 2284 … … 2286 2286 $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; 2287 2287 $fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' . 2288 2288 '<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>'; 2289 2289 2290 2290 // Ensure that the passed fields include cookies consent. -
trunk/src/wp-includes/compat.php
r45580 r45602 101 101 102 102 $regex = '/( 103 103 [\x00-\x7F] # single-byte sequences 0xxxxxxx 104 104 | [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx 105 105 | \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2 … … 184 184 185 185 $regex = '/(?: 186 186 [\x00-\x7F] # single-byte sequences 0xxxxxxx 187 187 | [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx 188 188 | \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2 -
trunk/src/wp-includes/deprecated.php
r45424 r45602 248 248 249 249 if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2)) 250 251 250 || ($author_data->user_level > $post_author_data->user_level) 251 || ($author_data->user_level >= 10) ) { 252 252 return true; 253 253 } else { … … 394 394 */ 395 395 function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id', 396 397 396 $show_description = true, $show_rating = false, 397 $limit = -1, $show_updated = 0) { 398 398 _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); 399 399 … … 566 566 */ 567 567 function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true, 568 568 $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) { 569 569 _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); 570 570 … … 614 614 */ 615 615 function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, 616 617 616 $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0, 617 $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) { 618 618 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' ); 619 619 -
trunk/src/wp-includes/formatting.php
r45590 r45602 845 845 $spaces = wp_spaces_regexp(); 846 846 847 // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation847 // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound,WordPress.WhiteSpace.PrecisionAlignment.Found -- don't remove regex indentation 848 848 $pattern = 849 849 '/' … … 2904 2904 ) 2905 2905 (\)?) # 3: Trailing closing parenthesis (for parethesis balancing post processing) 2906 ~xS'; // The regex is a non-anchored pattern and does not have a single fixed starting character. 2907 // Tell PCRE to spend more time optimizing since, when used on a page load, it will probably be used several times. 2906 ~xS'; 2907 // The regex is a non-anchored pattern and does not have a single fixed starting character. 2908 // Tell PCRE to spend more time optimizing since, when used on a page load, it will probably be used several times. 2908 2909 2909 2910 $ret = preg_replace_callback( $url_clickable, '_make_url_clickable_cb', $ret ); -
trunk/src/wp-includes/functions.php
r45590 r45602 3219 3219 -webkit-box-shadow: 0 1px 0 #ccc; 3220 3220 box-shadow: 0 1px 0 #ccc; 3221 3221 vertical-align: top; 3222 3222 } 3223 3223 … … 3245 3245 background: #eee; 3246 3246 border-color: #999; 3247 3248 3249 3250 3251 3247 -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); 3248 box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); 3249 -webkit-transform: translateY(1px); 3250 -ms-transform: translateY(1px); 3251 transform: translateY(1px); 3252 3252 } 3253 3253 -
trunk/src/wp-includes/post.php
r45590 r45602 2935 2935 if ( 'page' == $post->post_type ) { 2936 2936 /* 2937 2938 2939 2937 * If the page is defined in option page_on_front or post_for_posts, 2938 * adjust the corresponding options. 2939 */ 2940 2940 if ( get_option( 'page_on_front' ) == $post->ID ) { 2941 2941 update_option( 'show_on_front', 'posts' ); -
trunk/src/wp-includes/theme-compat/sidebar.php
r43571 r45602 19 19 <ul> 20 20 <?php 21 21 /* Widgetized sidebar, if you have the plugin installed. */ 22 22 if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar() ) : 23 23 ?> … … 36 36 is_year() || is_search() || is_paged() ) : 37 37 ?> 38 38 <li> 39 39 40 40 <?php if ( is_404() ) : /* If this is a 404 page */ ?> -
trunk/src/wp-includes/wp-db.php
r45598 r45602 1623 1623 /* 1624 1624 * It's possible ext/mysqli is misconfigured. Fall back to ext/mysql if: 1625 1626 1627 1628 1625 * - We haven't previously connected, and 1626 * - WP_USE_EXT_MYSQL isn't set to false, and 1627 * - ext/mysql is loaded. 1628 */ 1629 1629 $attempt_fallback = true; 1630 1630 -
trunk/tests/phpunit/tests/functions.php
r45588 r45602 1313 1313 array( 1314 1314 // Standard non-image file. 1315 1316 1317 1318 1319 1320 1321 1322 1323 1315 array( 1316 DIR_TESTDATA . '/formatting/big5.txt', 1317 'big5.txt', 1318 array( 1319 'ext' => 'txt', 1320 'type' => 'text/plain', 1321 'proper_filename' => false, 1322 ), 1323 ), 1324 1324 // Non-image file with wrong sub-type. 1325 1325 array(
Note: See TracChangeset
for help on using the changeset viewer.