Changeset 44574
- Timestamp:
- 01/12/2019 06:40:16 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/composer.json
r43571 r44574 11 11 }, 12 12 "require-dev": { 13 "dealerdirect/phpcodesniffer-composer-installer": "~0. 4.4",14 "wp-coding-standards/wpcs": "~1. 0.0"13 "dealerdirect/phpcodesniffer-composer-installer": "~0.5.0", 14 "wp-coding-standards/wpcs": "~1.2.0" 15 15 }, 16 16 "scripts": { -
trunk/composer.lock
r43571 r44574 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " 525cadb533bc92cc922d79144b33b14a",7 "content-hash": "c3625c9fc2ce3a44cad41a64f258bafd", 8 8 "packages": [], 9 9 "packages-dev": [ 10 10 { 11 11 "name": "dealerdirect/phpcodesniffer-composer-installer", 12 "version": "v0. 4.4",12 "version": "v0.5.0", 13 13 "source": { 14 14 "type": "git", 15 15 "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", 16 "reference": " 2e41850d5f7797cbb1af7b030d245b3b24e63a08"16 "reference": "e749410375ff6fb7a040a68878c656c2e610b132" 17 17 }, 18 18 "dist": { 19 19 "type": "zip", 20 "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/ 2e41850d5f7797cbb1af7b030d245b3b24e63a08",21 "reference": " 2e41850d5f7797cbb1af7b030d245b3b24e63a08",20 "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/e749410375ff6fb7a040a68878c656c2e610b132", 21 "reference": "e749410375ff6fb7a040a68878c656c2e610b132", 22 22 "shasum": "" 23 23 }, … … 25 25 "composer-plugin-api": "^1.0", 26 26 "php": "^5.3|^7", 27 "squizlabs/php_codesniffer": " *"27 "squizlabs/php_codesniffer": "^2|^3" 28 28 }, 29 29 "require-dev": { 30 30 "composer/composer": "*", 31 "wimg/php-compatibility": "^8.0" 32 }, 33 "suggest": { 34 "dealerdirect/qa-tools": "All the PHP QA tools you'll need" 31 "phpcompatibility/php-compatibility": "^9.0", 32 "sensiolabs/security-checker": "^4.1.0" 35 33 }, 36 34 "type": "composer-plugin", … … 50 48 { 51 49 "name": "Franck Nijhof", 52 "email": "f .nijhof@dealerdirect.nl",53 "homepage": "http://w orkingatdealerdirect.eu",54 "role": "Developer "50 "email": "franck.nijhof@dealerdirect.com", 51 "homepage": "http://www.frenck.nl", 52 "role": "Developer / IT Manager" 55 53 } 56 54 ], 57 55 "description": "PHP_CodeSniffer Standards Composer Installer Plugin", 58 "homepage": "http://w orkingatdealerdirect.eu",56 "homepage": "http://www.dealerdirect.com", 59 57 "keywords": [ 60 58 "PHPCodeSniffer", … … 74 72 "tests" 75 73 ], 76 "time": "201 7-12-06T16:27:17+00:00"74 "time": "2018-10-26T13:21:45+00:00" 77 75 }, 78 76 { 79 77 "name": "squizlabs/php_codesniffer", 80 "version": "3. 3.1",78 "version": "3.4.0", 81 79 "source": { 82 80 "type": "git", 83 81 "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", 84 "reference": " 628a481780561150481a9ec74709092b9759b3ec"82 "reference": "379deb987e26c7cd103a7b387aea178baec96e48" 85 83 }, 86 84 "dist": { 87 85 "type": "zip", 88 "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ 628a481780561150481a9ec74709092b9759b3ec",89 "reference": " 628a481780561150481a9ec74709092b9759b3ec",86 "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/379deb987e26c7cd103a7b387aea178baec96e48", 87 "reference": "379deb987e26c7cd103a7b387aea178baec96e48", 90 88 "shasum": "" 91 89 }, … … 125 123 "standards" 126 124 ], 127 "time": "2018- 07-26T23:47:18+00:00"125 "time": "2018-12-19T23:57:18+00:00" 128 126 }, 129 127 { 130 128 "name": "wp-coding-standards/wpcs", 131 "version": "1. 0.0",129 "version": "1.2.1", 132 130 "source": { 133 131 "type": "git", 134 132 "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git", 135 "reference": " 539c6d74e6207daa22b7ea754d6f103e9abb2755"133 "reference": "f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c" 136 134 }, 137 135 "dist": { 138 136 "type": "zip", 139 "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/ 539c6d74e6207daa22b7ea754d6f103e9abb2755",140 "reference": " 539c6d74e6207daa22b7ea754d6f103e9abb2755",137 "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c", 138 "reference": "f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c", 141 139 "shasum": "" 142 140 }, … … 146 144 }, 147 145 "require-dev": { 148 "phpcompatibility/php-compatibility": " *"146 "phpcompatibility/php-compatibility": "^9.0" 149 147 }, 150 148 "suggest": { … … 168 166 "wordpress" 169 167 ], 170 "time": "2018- 07-25T18:10:35+00:00"168 "time": "2018-12-18T09:43:51+00:00" 171 169 } 172 170 ], -
trunk/phpcs.xml.dist
r44573 r44574 5 5 <rule ref="WordPress-Core"/> 6 6 <rule ref="WordPress.CodeAnalysis.EmptyStatement"/> 7 8 <rule ref="PEAR.Functions.FunctionCallSignature">9 <properties>10 <property name="allowMultipleArguments" value="false"/>11 </properties>12 </rule>13 7 14 8 <rule ref="WordPress.NamingConventions.ValidVariableName"> -
trunk/src/wp-activate.php
r44048 r44574 136 136 137 137 <?php 138 } else {139 if ( is_wp_error( $result ) && in_array( $result->get_error_code(), $valid_error_codes ) ) {140 $signup = $result->get_error_data();141 ?>138 } else { 139 if ( is_wp_error( $result ) && in_array( $result->get_error_code(), $valid_error_codes ) ) { 140 $signup = $result->get_error_data(); 141 ?> 142 142 <h2><?php _e( 'Your account is now active!' ); ?></h2> 143 143 <?php … … 163 163 } 164 164 echo '</p>'; 165 } elseif ( $result === null || is_wp_error( $result ) ) {166 ?>165 } elseif ( $result === null || is_wp_error( $result ) ) { 166 ?> 167 167 <h2><?php _e( 'An error occurred during the activation' ); ?></h2> 168 168 <?php if ( is_wp_error( $result ) ) : ?> … … 170 170 <?php endif; ?> 171 171 <?php 172 } else {173 $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';174 $user = get_userdata( (int) $result['user_id'] );175 ?>172 } else { 173 $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : ''; 174 $user = get_userdata( (int) $result['user_id'] ); 175 ?> 176 176 <h2><?php _e( 'Your account is now active!' ); ?></h2> 177 177 … … 200 200 ?> 201 201 </p> 202 <?php 203 endif; 202 <?php 203 endif; 204 } 204 205 } 205 } 206 ?> 206 ?> 207 207 </div> 208 208 </div> -
trunk/src/wp-admin/custom-header.php
r43571 r44574 643 643 <?php 644 644 endif; 645 if ( ! empty( $this->default_headers ) ) :646 ?>645 if ( ! empty( $this->default_headers ) ) : 646 ?> 647 647 <tr> 648 648 <th scope="row"><?php _e( 'Default Images' ); ?></th> 649 649 <td> 650 <?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?>650 <?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?> 651 651 <p><?php _e( 'If you don‘t want to upload your own image, you can use one of these cool headers, or show a random one.' ); ?></p> 652 652 <?php else : ?> 653 653 <p><?php _e( 'You can use one of these cool headers or show a random one on each page.' ); ?></p> 654 654 <?php endif; ?> 655 <?php656 $this->show_header_selector( 'default' );657 ?>655 <?php 656 $this->show_header_selector( 'default' ); 657 ?> 658 658 </td> 659 659 </tr> 660 <?php660 <?php 661 661 endif; 662 if ( get_header_image() ) :663 ?>662 if ( get_header_image() ) : 663 ?> 664 664 <tr> 665 665 <th scope="row"><?php _e( 'Remove Image' ); ?></th> 666 666 <td> 667 667 <p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ); ?></p> 668 <?php submit_button( __( 'Remove Header Image' ), '', 'removeheader', false ); ?>668 <?php submit_button( __( 'Remove Header Image' ), '', 'removeheader', false ); ?> 669 669 </td> 670 670 </tr> 671 <?php671 <?php 672 672 endif; 673 673 674 $default_image = sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() );675 if ( $default_image && get_header_image() != $default_image ) :676 ?>674 $default_image = sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() ); 675 if ( $default_image && get_header_image() != $default_image ) : 676 ?> 677 677 <tr> 678 678 <th scope="row"><?php _e( 'Reset Image' ); ?></th> 679 679 <td> 680 680 <p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ); ?></p> 681 <?php submit_button( __( 'Restore Original Header Image' ), '', 'resetheader', false ); ?>681 <?php submit_button( __( 'Restore Original Header Image' ), '', 'resetheader', false ); ?> 682 682 </td> 683 683 </tr> … … 742 742 743 743 wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); 744 ?>744 ?> 745 745 746 746 <?php submit_button( null, 'primary', 'save-header-options' ); ?> -
trunk/src/wp-admin/includes/class-wp-list-table.php
r43571 r44574 1219 1219 $this->extra_tablenav( $which ); 1220 1220 $this->pagination( $which ); 1221 ?>1221 ?> 1222 1222 1223 1223 <br class="clear" /> -
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r44420 r44574 281 281 <div class="no-plugin-results"><?php _e( 'No plugins found. Try a different search.' ); ?></div> 282 282 <?php 283 }283 } 284 284 } 285 285 … … 393 393 </div> 394 394 <?php 395 }395 } 396 396 } 397 397 -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r44221 r44574 1472 1472 </label> 1473 1473 1474 <?php if ( is_post_type_viewable( $screen->post_type ) ) : // is_post_type_viewable check ?>1474 <?php if ( is_post_type_viewable( $screen->post_type ) ) : // is_post_type_viewable check ?> 1475 1475 1476 1476 <label> … … 1479 1479 </label> 1480 1480 1481 <?php1481 <?php 1482 1482 endif; // is_post_type_viewable check 1483 1483 endif; // $bulk … … 1494 1494 endif; // $bulk 1495 1495 1496 if ( post_type_supports( $screen->post_type, 'author' ) ) :1497 $authors_dropdown = '';1498 1499 if ( current_user_can( $post_type_object->cap->edit_others_posts ) ) :1500 $users_opt = array(1501 'hide_if_only_one_author' => false,1502 'who' => 'authors',1503 'name' => 'post_author',1504 'class' => 'authors',1505 'multi' => 1,1506 'echo' => 0,1507 'show' => 'display_name_with_login',1508 );1509 if ( $bulk ) {1510 $users_opt['show_option_none'] = __( '— No Change —' );1511 }1512 1513 if ( $authors = wp_dropdown_users( $users_opt ) ) :1514 $authors_dropdown = '<label class="inline-edit-author">';1515 $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';1516 $authors_dropdown .= $authors;1517 $authors_dropdown .= '</label>';1518 endif;1519 endif; // authors1520 ?>1521 1522 <?php1523 if ( ! $bulk ) {1524 echo $authors_dropdown;}1496 if ( post_type_supports( $screen->post_type, 'author' ) ) : 1497 $authors_dropdown = ''; 1498 1499 if ( current_user_can( $post_type_object->cap->edit_others_posts ) ) : 1500 $users_opt = array( 1501 'hide_if_only_one_author' => false, 1502 'who' => 'authors', 1503 'name' => 'post_author', 1504 'class' => 'authors', 1505 'multi' => 1, 1506 'echo' => 0, 1507 'show' => 'display_name_with_login', 1508 ); 1509 if ( $bulk ) { 1510 $users_opt['show_option_none'] = __( '— No Change —' ); 1511 } 1512 1513 if ( $authors = wp_dropdown_users( $users_opt ) ) : 1514 $authors_dropdown = '<label class="inline-edit-author">'; 1515 $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>'; 1516 $authors_dropdown .= $authors; 1517 $authors_dropdown .= '</label>'; 1518 endif; 1519 endif; // authors 1520 ?> 1521 1522 <?php 1523 if ( ! $bulk ) { 1524 echo $authors_dropdown;} 1525 1525 endif; // post_type_supports author 1526 1526 1527 if ( ! $bulk && $can_publish ) :1528 ?>1527 if ( ! $bulk && $can_publish ) : 1528 ?> 1529 1529 1530 1530 <div class="inline-edit-group wp-clearfix"> … … 1546 1546 </div> 1547 1547 1548 <?php endif; ?>1548 <?php endif; ?> 1549 1549 1550 1550 </div></fieldset> … … 1691 1691 1692 1692 <div class="inline-edit-group wp-clearfix"> 1693 <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>1693 <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?> 1694 1694 <label class="alignleft"> 1695 1695 <input type="checkbox" name="comment_status" value="open" /> … … 1704 1704 </div> 1705 1705 1706 <?php1706 <?php 1707 1707 endif; // $bulk 1708 1708 endif; // post_type_supports comments or pings -
trunk/src/wp-admin/includes/class-wp-screen.php
r44130 r44574 919 919 <?php 920 920 endif; 921 if ( $this->show_screen_options() ) :922 ?>921 if ( $this->show_screen_options() ) : 922 ?> 923 923 <div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle"> 924 924 <button type="button" id="show-settings-link" class="button show-settings" aria-controls="screen-options-wrap" aria-expanded="false"><?php _e( 'Screen Options' ); ?></button> -
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r43571 r44574 287 287 */ 288 288 do_action( 'restrict_manage_users', $which ); 289 ?>289 ?> 290 290 </div> 291 291 <?php -
trunk/src/wp-admin/includes/meta-boxes.php
r44551 r44574 319 319 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e( 'Publish' ); ?>" /> 320 320 <?php submit_button( __( 'Publish' ), 'primary large', 'publish', false ); ?> 321 <?php321 <?php 322 322 endif; 323 323 else : -
trunk/src/wp-admin/includes/ms.php
r44469 r44574 999 999 <?php else : ?> 1000 1000 <p><?php _e( 'Once you hit “Confirm Deletion”, these users will be permanently removed.' ); ?></p> 1001 <?php1001 <?php 1002 1002 endif; 1003 1003 1004 1004 submit_button( __( 'Confirm Deletion' ), 'primary' ); 1005 ?>1005 ?> 1006 1006 </form> 1007 1007 <?php -
trunk/src/wp-admin/includes/plugin-install.php
r44420 r44574 697 697 <p aria-hidden="true" class="fyi-description"><?php printf( _n( '(based on %s rating)', '(based on %s ratings)', $api->num_ratings ), number_format_i18n( $api->num_ratings ) ); ?></p> 698 698 <?php 699 }700 701 if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) {702 ?>699 } 700 701 if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) { 702 ?> 703 703 <h3><?php _e( 'Reviews' ); ?></h3> 704 704 <p class="fyi-description"><?php _e( 'Read all reviews on WordPress.org or write your own!' ); ?></p> … … 728 728 <?php 729 729 } 730 }731 if ( ! empty( $api->contributors ) ) {732 ?>730 } 731 if ( ! empty( $api->contributors ) ) { 732 ?> 733 733 <h3><?php _e( 'Contributors' ); ?></h3> 734 734 <ul class="contributors"> … … 748 748 ?> 749 749 </ul> 750 <?php if ( ! empty( $api->donate_link ) ) { ?>750 <?php if ( ! empty( $api->donate_link ) ) { ?> 751 751 <a target="_blank" href="<?php echo esc_url( $api->donate_link ); ?>"><?php _e( 'Donate to this plugin »' ); ?></a> 752 752 <?php } ?> 753 <?php } ?>753 <?php } ?> 754 754 </div> 755 755 <div id="section-holder" class="wrap"> -
trunk/src/wp-admin/includes/post.php
r44540 r44574 1733 1733 <a class="button<?php echo $tab_last; ?>" href="<?php echo esc_url( $preview_link ); ?>"><?php _e( 'Preview' ); ?></a> 1734 1734 <?php 1735 }1735 } 1736 1736 1737 1737 // Allow plugins to prevent some users overriding the post lock 1738 if ( $override ) {1739 ?>1738 if ( $override ) { 1739 ?> 1740 1740 <a class="button button-primary wp-tab-last" href="<?php echo esc_url( add_query_arg( 'get-post-lock', '1', wp_nonce_url( get_edit_post_link( $post->ID, 'url' ), 'lock-post_' . $post->ID ) ) ); ?>"><?php _e( 'Take over' ); ?></a> 1741 1741 <?php 1742 }1743 1744 ?>1742 } 1743 1744 ?> 1745 1745 </p> 1746 1746 </div> -
trunk/src/wp-admin/nav-menus.php
r44151 r44574 823 823 </span><!-- /add-new-menu-action --> 824 824 </form> 825 <?php825 <?php 826 826 endif; 827 827 828 828 $metabox_holder_disabled_class = ''; 829 if ( isset( $_GET['menu'] ) && '0' == $_GET['menu'] ) {830 $metabox_holder_disabled_class = ' metabox-holder-disabled';831 }832 ?>829 if ( isset( $_GET['menu'] ) && '0' == $_GET['menu'] ) { 830 $metabox_holder_disabled_class = ' metabox-holder-disabled'; 831 } 832 ?> 833 833 </div><!-- /manage-menus --> 834 834 <div id="nav-menus-frame" class="wp-clearfix"> … … 915 915 916 916 $no_menus_style = ''; 917 if ( $one_theme_location_no_menus ) {918 $no_menus_style = 'style="display: none;"';919 }920 ?>917 if ( $one_theme_location_no_menus ) { 918 $no_menus_style = 'style="display: none;"'; 919 } 920 ?> 921 921 <div class="menu-settings" <?php echo $no_menus_style; ?>> 922 922 <h3><?php _e( 'Menu Settings' ); ?></h3> -
trunk/src/wp-admin/network/site-new.php
r43571 r44574 232 232 <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required /><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', get_network()->domain ); ?></span> 233 233 <?php 234 } else {235 echo get_network()->domain . get_network()->path236 ?>234 } else { 235 echo get_network()->domain . get_network()->path 236 ?> 237 237 <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required /> 238 <?php239 }238 <?php 239 } 240 240 echo '<p class="description" id="site-address-desc">' . __( 'Only lowercase letters (a-z), numbers, and hyphens are allowed.' ) . '</p>'; 241 ?>241 ?> 242 242 </td> 243 243 </tr> -
trunk/src/wp-admin/options-permalink.php
r43571 r44574 350 350 <?php else : ?> 351 351 <p> 352 <?php353 printf(354 /* translators: 1: Codex URL, 2: web.config, 3: CTRL + a */355 __( 'If the root directory of your site was <a href="%1$s">writable</a>, we could do this automatically, but it isn’t so this is the url rewrite rule you should have in your %2$s file. Create a new file, called %2$s in the root directory of your site. Click in the field and press %3$s to select all. Then insert this code into the %2$s file.' ),356 __( 'https://codex.wordpress.org/Changing_File_Permissions' ),357 '<code>web.config</code>',358 '<kbd>CTRL + a</kbd>'359 );360 ?>352 <?php 353 printf( 354 /* translators: 1: Codex URL, 2: web.config, 3: CTRL + a */ 355 __( 'If the root directory of your site was <a href="%1$s">writable</a>, we could do this automatically, but it isn’t so this is the url rewrite rule you should have in your %2$s file. Create a new file, called %2$s in the root directory of your site. Click in the field and press %3$s to select all. Then insert this code into the %2$s file.' ), 356 __( 'https://codex.wordpress.org/Changing_File_Permissions' ), 357 '<code>web.config</code>', 358 '<kbd>CTRL + a</kbd>' 359 ); 360 ?> 361 361 </p> 362 362 <form action="options-permalink.php" method="post"> 363 <?php wp_nonce_field( 'update-permalink' ); ?>363 <?php wp_nonce_field( 'update-permalink' ); ?> 364 364 <p><textarea rows="18" class="large-text readonly" name="rules" id="rules" readonly="readonly"><?php echo esc_textarea( $wp_rewrite->iis7_url_rewrite_rules( true ) ); ?></textarea></p> 365 365 </form> 366 366 <p> 367 <?php368 printf(369 /* translators: %s: web.config */370 __( 'If you temporarily make your site’s root directory writable for us to generate the %s file automatically, do not forget to revert the permissions after the file has been created.' ),371 '<code>web.config</code>'372 );373 ?>367 <?php 368 printf( 369 /* translators: %s: web.config */ 370 __( 'If you temporarily make your site’s root directory writable for us to generate the %s file automatically, do not forget to revert the permissions after the file has been created.' ), 371 '<code>web.config</code>' 372 ); 373 ?> 374 374 </p> 375 375 <?php endif; ?> -
trunk/src/wp-admin/user-edit.php
r44565 r44574 229 229 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 230 230 <?php 231 }231 } 232 232 } 233 233 ?> … … 305 305 <?php 306 306 endif; // $_wp_admin_css_colors 307 if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) :308 ?>307 if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : 308 ?> 309 309 <tr class="user-comment-shortcuts-wrap"> 310 310 <th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th> 311 311 <td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php checked( 'true', $profileuser->comment_shortcuts ); ?> /> <?php _e( 'Enable keyboard shortcuts for comment moderation.' ); ?></label> <?php _e( '<a href="https://codex.wordpress.org/Keyboard_Shortcuts" target="_blank">More information</a>' ); ?></td> 312 312 </tr> 313 <?php endif; ?>313 <?php endif; ?> 314 314 <tr class="show-admin-bar user-admin-bar-front-wrap"> 315 315 <th scope="row"><?php _e( 'Toolbar' ); ?></th> … … 415 415 endif; //!IS_PROFILE_PAGE 416 416 417 if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && ! isset( $super_admins ) ) {418 ?>417 if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && ! isset( $super_admins ) ) { 418 ?> 419 419 <tr class="user-super-admin-wrap"><th><?php _e( 'Super Admin' ); ?></th> 420 420 <td> 421 <?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?>421 <?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?> 422 422 <p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profileuser->ID ) ); ?> /> <?php _e( 'Grant this user super admin privileges for the Network.' ); ?></label></p> 423 423 <?php else : ?> … … 425 425 <?php endif; ?> 426 426 </td></tr> 427 <?php } ?>427 <?php } ?> 428 428 429 429 <tr class="user-first-name-wrap"> -
trunk/src/wp-admin/users.php
r43571 r44574 289 289 <input type="hidden" name="delete_option" value="delete" /> 290 290 <?php else : ?> 291 <?php if ( 1 == $go_delete ) : ?>291 <?php if ( 1 == $go_delete ) : ?> 292 292 <fieldset><p><legend><?php _e( 'What should be done with content owned by this user?' ); ?></legend></p> 293 293 <?php else : ?> … … 296 296 <ul style="list-style:none;"> 297 297 <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" /> 298 <?php _e( 'Delete all content.' ); ?></label></li>298 <?php _e( 'Delete all content.' ); ?></label></li> 299 299 <li><input type="radio" id="delete_option1" name="delete_option" value="reassign" /> 300 <?php301 echo '<label for="delete_option1">' . __( 'Attribute all content to:' ) . '</label> ';302 wp_dropdown_users(303 array(304 'name' => 'reassign_user',305 'exclude' => array_diff( $userids, array( $current_user->ID ) ),306 'show' => 'display_name_with_login',307 )308 );309 ?>300 <?php 301 echo '<label for="delete_option1">' . __( 'Attribute all content to:' ) . '</label> '; 302 wp_dropdown_users( 303 array( 304 'name' => 'reassign_user', 305 'exclude' => array_diff( $userids, array( $current_user->ID ) ), 306 'show' => 'display_name_with_login', 307 ) 308 ); 309 ?> 310 310 </li> 311 311 </ul></fieldset> 312 <?php312 <?php 313 313 endif; 314 /**315 * Fires at the end of the delete users form prior to the confirm button.316 *317 * @since 4.0.0318 * @since 4.5.0 The `$userids` parameter was added.319 *320 * @param WP_User $current_user WP_User object for the current user.321 * @param int[] $userids Array of IDs for users being deleted.322 */323 do_action( 'delete_user_form', $current_user, $userids );324 ?>314 /** 315 * Fires at the end of the delete users form prior to the confirm button. 316 * 317 * @since 4.0.0 318 * @since 4.5.0 The `$userids` parameter was added. 319 * 320 * @param WP_User $current_user WP_User object for the current user. 321 * @param int[] $userids Array of IDs for users being deleted. 322 */ 323 do_action( 'delete_user_form', $current_user, $userids ); 324 ?> 325 325 <input type="hidden" name="action" value="dodelete" /> 326 326 <?php submit_button( __( 'Confirm Deletion' ), 'primary' ); ?> … … 523 523 endif; 524 524 525 if ( ! empty( $messages ) ) {526 foreach ( $messages as $msg ) {527 echo $msg;528 }529 }530 ?>525 if ( ! empty( $messages ) ) { 526 foreach ( $messages as $msg ) { 527 echo $msg; 528 } 529 } 530 ?> 531 531 532 532 <div class="wrap"> -
trunk/src/wp-content/themes/twentyeleven/comments.php
r44562 r44574 25 25 return; 26 26 endif; 27 ?>27 ?> 28 28 29 29 <?php // You can start editing here -- including this comment! ?> -
trunk/src/wp-content/themes/twentyeleven/content-gallery.php
r43571 r44574 56 56 <?php the_excerpt(); ?> 57 57 <?php endif; ?> 58 <?php59 wp_link_pages(60 array(61 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>',62 'after' => '</div>',63 )64 );65 ?>58 <?php 59 wp_link_pages( 60 array( 61 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 62 'after' => '</div>', 63 ) 64 ); 65 ?> 66 66 </div><!-- .entry-content --> 67 67 <?php endif; ?> -
trunk/src/wp-content/themes/twentyfifteen/header.php
r44500 r44574 37 37 <?php else : ?> 38 38 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> 39 <?php39 <?php 40 40 endif; 41 41 42 42 $description = get_bloginfo( 'description', 'display' ); 43 if ( $description || is_customize_preview() ) :44 ?>43 if ( $description || is_customize_preview() ) : 44 ?> 45 45 <p class="site-description"><?php echo $description; ?></p> 46 <?php46 <?php 47 47 endif; 48 ?>48 ?> 49 49 <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button> 50 50 </div><!-- .site-branding --> -
trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php
r43571 r44574 210 210 </a> 211 211 212 <?php212 <?php 213 213 endif; // End is_singular() 214 214 } -
trunk/src/wp-content/themes/twentyfourteen/content-aside.php
r43571 r44574 20 20 endif; 21 21 22 if ( is_single() ) :23 the_title( '<h1 class="entry-title">', '</h1>' );22 if ( is_single() ) : 23 the_title( '<h1 class="entry-title">', '</h1>' ); 24 24 else : 25 25 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); -
trunk/src/wp-content/themes/twentyfourteen/content-audio.php
r43571 r44574 20 20 endif; 21 21 22 if ( is_single() ) :23 the_title( '<h1 class="entry-title">', '</h1>' );22 if ( is_single() ) : 23 the_title( '<h1 class="entry-title">', '</h1>' ); 24 24 else : 25 25 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); -
trunk/src/wp-content/themes/twentyfourteen/content-gallery.php
r43571 r44574 20 20 endif; 21 21 22 if ( is_single() ) :23 the_title( '<h1 class="entry-title">', '</h1>' );22 if ( is_single() ) : 23 the_title( '<h1 class="entry-title">', '</h1>' ); 24 24 else : 25 25 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); -
trunk/src/wp-content/themes/twentyfourteen/content-image.php
r43571 r44574 20 20 endif; 21 21 22 if ( is_single() ) :23 the_title( '<h1 class="entry-title">', '</h1>' );22 if ( is_single() ) : 23 the_title( '<h1 class="entry-title">', '</h1>' ); 24 24 else : 25 25 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); -
trunk/src/wp-content/themes/twentyfourteen/content-link.php
r43571 r44574 20 20 endif; 21 21 22 if ( is_single() ) :23 the_title( '<h1 class="entry-title">', '</h1>' );22 if ( is_single() ) : 23 the_title( '<h1 class="entry-title">', '</h1>' ); 24 24 else : 25 25 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); -
trunk/src/wp-content/themes/twentyfourteen/content-none.php
r25769 r44574 21 21 22 22 <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p> 23 <?php get_search_form(); ?>23 <?php get_search_form(); ?> 24 24 25 25 <?php else : ?> 26 26 27 27 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p> 28 <?php get_search_form(); ?>28 <?php get_search_form(); ?> 29 29 30 30 <?php endif; ?> -
trunk/src/wp-content/themes/twentyfourteen/content-quote.php
r43571 r44574 20 20 endif; 21 21 22 if ( is_single() ) :23 the_title( '<h1 class="entry-title">', '</h1>' );22 if ( is_single() ) : 23 the_title( '<h1 class="entry-title">', '</h1>' ); 24 24 else : 25 25 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); -
trunk/src/wp-content/themes/twentyfourteen/content-video.php
r43571 r44574 20 20 endif; 21 21 22 if ( is_single() ) :23 the_title( '<h1 class="entry-title">', '</h1>' );22 if ( is_single() ) : 23 the_title( '<h1 class="entry-title">', '</h1>' ); 24 24 else : 25 25 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); -
trunk/src/wp-content/themes/twentyfourteen/content.php
r43571 r44574 22 22 endif; 23 23 24 if ( is_single() ) :25 the_title( '<h1 class="entry-title">', '</h1>' );24 if ( is_single() ) : 25 the_title( '<h1 class="entry-title">', '</h1>' ); 26 26 else : 27 27 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); -
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r43571 r44574 198 198 199 199 <a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true"> 200 <?php201 if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) {202 the_post_thumbnail( 'twentyfourteen-full-width' );203 } else {204 the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) );205 }206 ?>200 <?php 201 if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) { 202 the_post_thumbnail( 'twentyfourteen-full-width' ); 203 } else { 204 the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); 205 } 206 ?> 207 207 </a> 208 208 209 <?php209 <?php 210 210 endif; // End is_singular() 211 211 } -
trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-none.php
r44496 r44574 31 31 32 32 endif; 33 ?>33 ?> 34 34 </div><!-- .page-content --> 35 35 </section><!-- .no-results --> -
trunk/src/wp-content/themes/twentysixteen/header.php
r44500 r44574 36 36 <?php else : ?> 37 37 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> 38 <?php38 <?php 39 39 endif; 40 40 41 41 $description = get_bloginfo( 'description', 'display' ); 42 if ( $description || is_customize_preview() ) :43 ?>42 if ( $description || is_customize_preview() ) : 43 ?> 44 44 <p class="site-description"><?php echo $description; ?></p> 45 45 <?php endif; ?> -
trunk/src/wp-content/themes/twentysixteen/inc/template-tags.php
r43571 r44574 146 146 </a> 147 147 148 <?php148 <?php 149 149 endif; // End is_singular() 150 150 } -
trunk/src/wp-content/themes/twentyten/loop.php
r43571 r44574 134 134 </div><!-- #post-## --> 135 135 136 <?php /* How to display all other posts. */ ?>136 <?php /* How to display all other posts. */ ?> 137 137 138 138 <?php else : ?> … … 144 144 </div><!-- .entry-meta --> 145 145 146 <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>146 <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?> 147 147 <div class="entry-summary"> 148 148 <?php the_excerpt(); ?> -
trunk/src/wp-content/themes/twentythirteen/content-none.php
r25522 r44574 21 21 22 22 <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with different keywords.', 'twentythirteen' ); ?></p> 23 <?php get_search_form(); ?>23 <?php get_search_form(); ?> 24 24 25 25 <?php else : ?> 26 26 27 27 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentythirteen' ); ?></p> 28 <?php get_search_form(); ?>28 <?php get_search_form(); ?> 29 29 30 30 <?php endif; ?> -
trunk/src/wp-includes/feed-atom-comments.php
r43571 r44574 111 111 <?php else : // post pass ?> 112 112 <content type="html" xml:base="<?php comment_link(); ?>"><![CDATA[<?php comment_text(); ?>]]></content> 113 <?php113 <?php 114 114 endif; // post pass 115 115 // Return comment threading information (https://www.ietf.org/rfc/rfc4685.txt) 116 if ( $comment->comment_parent == 0 ) : // This comment is top level117 ?>116 if ( $comment->comment_parent == 0 ) : // This comment is top level 117 ?> 118 118 <thr:in-reply-to ref="<?php the_guid(); ?>" href="<?php the_permalink_rss(); ?>" type="<?php bloginfo_rss( 'html_type' ); ?>" /> 119 <?php119 <?php 120 120 else : // This comment is in reply to another comment 121 121 $parent_comment = get_comment( $comment->comment_parent ); -
trunk/src/wp-includes/feed-atom.php
r43571 r44574 67 67 */ 68 68 do_action( 'atom_author' ); 69 ?>69 ?> 70 70 </author> 71 71 <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss(); ?>]]></title> -
trunk/src/wp-includes/feed-rss2-comments.php
r43571 r44574 106 106 <description><![CDATA[<?php comment_text_rss(); ?>]]></description> 107 107 <content:encoded><![CDATA[<?php comment_text(); ?>]]></content:encoded> 108 <?php108 <?php 109 109 endif; // post pass 110 110 /** … … 117 117 */ 118 118 do_action( 'commentrss2_item', $comment->comment_ID, $comment_post->ID ); 119 ?>119 ?> 120 120 </item> 121 121 <?php -
trunk/src/wp-includes/widgets/class-wp-widget-archives.php
r43571 r44574 132 132 </ul> 133 133 <?php 134 }134 } 135 135 136 136 echo $args['after_widget']; -
trunk/src/wp-includes/widgets/class-wp-widget-text.php
r43571 r44574 494 494 <input id="<?php echo $this->get_field_id( 'filter' ); ?>" name="<?php echo $this->get_field_name( 'filter' ); ?>" type="checkbox"<?php checked( ! empty( $instance['filter'] ) ); ?> /> <label for="<?php echo $this->get_field_id( 'filter' ); ?>"><?php _e( 'Automatically add paragraphs' ); ?></label> 495 495 </p> 496 <?php496 <?php 497 497 endif; 498 498 } -
trunk/src/wp-login.php
r44545 r44574 1115 1115 <?php } else { ?> 1116 1116 d = document.getElementById('user_login'); 1117 <?php if ( 'invalid_username' == $errors->get_error_code() ) { ?>1117 <?php if ( 'invalid_username' == $errors->get_error_code() ) { ?> 1118 1118 if( d.value != '' ) 1119 1119 d.value = ''; 1120 <?php1121 }1122 }1123 ?>1120 <?php 1121 } 1122 } 1123 ?> 1124 1124 d.focus(); 1125 1125 d.select(); -
trunk/src/wp-signup.php
r43595 r44574 140 140 <p class="error"><?php echo $errmsg; ?></p> 141 141 <?php 142 }142 } 143 143 echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr( $blog_title ) . '" />'; 144 ?>144 ?> 145 145 146 146 <?php
Note: See TracChangeset
for help on using the changeset viewer.