Ticket #45956: 45956.diff
| File 45956.diff, 47.3 KB (added by , 7 years ago) |
|---|
-
composer.json
10 10 "issues": "https://core.trac.wordpress.org/" 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": { 17 17 "format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source", -
composer.lock
4 4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", 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 }, 24 24 "require": { 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", 37 35 "extra": { … … 49 47 "authors": [ 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", 61 59 "PHP_CodeSniffer", … … 73 71 "stylecheck", 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 }, 92 90 "require": { … … 124 122 "phpcs", 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 }, 143 141 "require": { … … 145 143 "squizlabs/php_codesniffer": "^2.9.0 || ^3.0.2" 146 144 }, 147 145 "require-dev": { 148 "phpcompatibility/php-compatibility": " *"146 "phpcompatibility/php-compatibility": "^9.0" 149 147 }, 150 148 "suggest": { 151 149 "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." … … 167 165 "standards", 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 ], 173 171 "aliases": [], -
phpcs.xml.dist
5 5 <rule ref="WordPress-Core"/> 6 6 <rule ref="WordPress.CodeAnalysis.EmptyStatement"/> 7 7 8 <rule ref="PEAR.Functions.FunctionCallSignature">9 <properties>10 <property name="allowMultipleArguments" value="false"/>11 </properties>12 </rule>13 14 8 <rule ref="WordPress.NamingConventions.ValidVariableName"> 15 9 <properties> 16 10 <property name="customPropertiesWhitelist" type="array"> -
src/wp-activate.php
135 135 </form> 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 144 144 echo '<p class="lead-in">'; … … 162 162 ); 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 ) ) : ?> 169 169 <p><?php echo $result->get_error_message(); ?></p> 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 178 178 <div id="signup-welcome"> … … 199 199 printf( __( 'Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ), network_site_url( 'wp-login.php', 'login' ), network_home_url() ); 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> 209 209 <script type="text/javascript"> -
src/wp-admin/custom-header.php
642 642 </tr> 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> 684 684 <?php endif; ?> … … 741 741 do_action( 'custom_header_options' ); 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' ); ?> 747 747 </form> -
src/wp-admin/includes/class-wp-list-table.php
1218 1218 endif; 1219 1219 $this->extra_tablenav( $which ); 1220 1220 $this->pagination( $which ); 1221 ?>1221 ?> 1222 1222 1223 1223 <br class="clear" /> 1224 1224 </div> -
src/wp-admin/includes/class-wp-plugin-install-list-table.php
280 280 <?php } else { ?> 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 286 286 /** … … 392 392 <br class="clear" /> 393 393 </div> 394 394 <?php 395 }395 } 396 396 } 397 397 398 398 /** -
src/wp-admin/includes/class-wp-posts-list-table.php
1471 1471 <span class="input-text-wrap"><input type="text" name="post_title" class="ptitle" value="" /></span> 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> 1477 1477 <span class="title"><?php _e( 'Slug' ); ?></span> 1478 1478 <span class="input-text-wrap"><input type="text" name="post_name" value="" /></span> 1479 1479 </label> 1480 1480 1481 <?php1481 <?php 1482 1482 endif; // is_post_type_viewable check 1483 1483 endif; // $bulk 1484 1484 endif; // post_type_supports title … … 1493 1493 <?php 1494 1494 endif; // $bulk 1495 1495 1496 if ( post_type_supports( $screen->post_type, 'author' ) ) :1497 $authors_dropdown = '';1496 if ( post_type_supports( $screen->post_type, 'author' ) ) : 1497 $authors_dropdown = ''; 1498 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 }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 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;}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"> 1531 1531 <label class="alignleft"> … … 1545 1545 </label> 1546 1546 </div> 1547 1547 1548 <?php endif; ?>1548 <?php endif; ?> 1549 1549 1550 1550 </div></fieldset> 1551 1551 … … 1690 1690 <?php else : // $bulk ?> 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" /> 1696 1696 <span class="checkbox-title"><?php _e( 'Allow Comments' ); ?></span> … … 1703 1703 <?php endif; ?> 1704 1704 </div> 1705 1705 1706 <?php1706 <?php 1707 1707 endif; // $bulk 1708 1708 endif; // post_type_supports comments or pings 1709 1709 ?> -
src/wp-admin/includes/class-wp-screen.php
918 918 </div> 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> 925 925 </div> -
src/wp-admin/includes/class-wp-users-list-table.php
286 286 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'. 287 287 */ 288 288 do_action( 'restrict_manage_users', $which ); 289 ?>289 ?> 290 290 </div> 291 291 <?php 292 292 /** -
src/wp-admin/includes/meta-boxes.php
318 318 <?php else : ?> 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 : 324 324 ?> -
src/wp-admin/includes/ms.php
998 998 <p><?php _e( 'Once you hit “Confirm Deletion”, the user will be permanently removed.' ); ?></p> 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 1008 1008 return true; -
src/wp-admin/includes/plugin-install.php
696 696 ?> 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 }699 } 700 700 701 if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) {702 ?>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> 705 705 <?php … … 727 727 </div> 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"> 735 735 <?php … … 747 747 } 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"> 756 756 <?php -
src/wp-admin/includes/post.php
1732 1732 <?php if ( $preview_link ) { ?> 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 }1742 } 1743 1743 1744 ?>1744 ?> 1745 1745 </p> 1746 1746 </div> 1747 1747 <?php -
src/wp-admin/nav-menus.php
822 822 <span class="screen-reader-text"><?php _e( 'Click the Save Menu button to save your changes.' ); ?></span> 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"> 835 835 <div id="menu-settings-column" class="metabox-holder<?php echo $metabox_holder_disabled_class; ?>"> … … 914 914 endif; 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> 923 923 <?php -
src/wp-admin/network/site-new.php
231 231 <?php if ( is_subdomain_install() ) { ?> 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> 244 244 <tr class="form-field form-required"> -
src/wp-admin/options-permalink.php
349 349 </p> 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; ?> 376 376 <?php endif; ?> -
src/wp-admin/user-edit.php
228 228 <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> 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 ?> 234 234 … … 304 304 </tr> 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> 316 316 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Toolbar' ); ?></span></legend> … … 414 414 <?php 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 : ?> 424 424 <p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p> 425 425 <?php endif; ?> 426 426 </td></tr> 427 <?php } ?>427 <?php } ?> 428 428 429 429 <tr class="user-first-name-wrap"> 430 430 <th><label for="first_name"><?php _e( 'First Name' ); ?></label></th> -
src/wp-admin/users.php
288 288 ?> 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 : ?> 294 294 <fieldset><p><legend><?php _e( 'What should be done with content owned by these users?' ); ?></legend></p> 295 295 <?php endif; ?> 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' ); ?> 327 327 <?php else : ?> … … 522 522 <?php 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"> 533 533 <h1 class="wp-heading-inline"> -
src/wp-content/themes/twentyeleven/comments.php
24 24 */ 25 25 return; 26 26 endif; 27 ?>27 ?> 28 28 29 29 <?php // You can start editing here -- including this comment! ?> 30 30 -
src/wp-content/themes/twentyeleven/content-gallery.php
55 55 <?php endif; // end twentyeleven_get_gallery_images() check ?> 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; ?> 68 68 -
src/wp-content/themes/twentyfifteen/header.php
36 36 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> 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 --> 51 51 </header><!-- .site-header --> -
src/wp-content/themes/twentyfifteen/inc/template-tags.php
209 209 ?> 210 210 </a> 211 211 212 <?php212 <?php 213 213 endif; // End is_singular() 214 214 } 215 215 endif; -
src/wp-content/themes/twentyfourteen/content-aside.php
19 19 <?php 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>' ); 26 26 endif; -
src/wp-content/themes/twentyfourteen/content-audio.php
19 19 <?php 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>' ); 26 26 endif; -
src/wp-content/themes/twentyfourteen/content-gallery.php
19 19 <?php 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>' ); 26 26 endif; -
src/wp-content/themes/twentyfourteen/content-image.php
19 19 <?php 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>' ); 26 26 endif; -
src/wp-content/themes/twentyfourteen/content-link.php
19 19 <?php 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>' ); 26 26 endif; -
src/wp-content/themes/twentyfourteen/content-none.php
20 20 <?php elseif ( is_search() ) : ?> 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; ?> 31 31 </div><!-- .page-content --> -
src/wp-content/themes/twentyfourteen/content-quote.php
19 19 <?php 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>' ); 26 26 endif; -
src/wp-content/themes/twentyfourteen/content-video.php
19 19 <?php 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>' ); 26 26 endif; -
src/wp-content/themes/twentyfourteen/content.php
21 21 <?php 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>' ); 28 28 endif; -
src/wp-content/themes/twentyfourteen/inc/template-tags.php
197 197 <?php else : ?> 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 } 212 212 endif; -
src/wp-content/themes/twentyseventeen/template-parts/post/content-none.php
30 30 get_search_form(); 31 31 32 32 endif; 33 ?>33 ?> 34 34 </div><!-- .page-content --> 35 35 </section><!-- .no-results --> -
src/wp-content/themes/twentysixteen/header.php
35 35 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> 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; ?> 46 46 </div><!-- .site-branding --> -
src/wp-content/themes/twentysixteen/inc/template-tags.php
145 145 <?php the_post_thumbnail( 'post-thumbnail', array( 'alt' => the_title_attribute( 'echo=0' ) ) ); ?> 146 146 </a> 147 147 148 <?php148 <?php 149 149 endif; // End is_singular() 150 150 } 151 151 endif; -
src/wp-content/themes/twentyten/loop.php
133 133 </div><!-- .entry-utility --> 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 : ?> 139 139 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 143 143 <?php twentyten_posted_on(); ?> 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(); ?> 149 149 </div><!-- .entry-summary --> -
src/wp-content/themes/twentythirteen/content-none.php
20 20 <?php elseif ( is_search() ) : ?> 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; ?> 31 31 </div><!-- .page-content --> -
src/wp-includes/feed-atom-comments.php
110 110 <content type="html" xml:base="<?php comment_link(); ?>"><![CDATA[<?php echo get_the_password_form(); ?>]]></content> 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 ); 122 122 // The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, it's more important that they both use the same system -
src/wp-includes/feed-atom.php
66 66 * @since 3.2.0 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> 72 72 <link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>" /> -
src/wp-includes/feed-rss2-comments.php
105 105 <?php else : // post pass ?> 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 /** 111 111 * Fires at the end of each RSS2 comment feed item. … … 116 116 * @param int $comment_post->ID The ID of the post the comment is connected to. 117 117 */ 118 118 do_action( 'commentrss2_item', $comment->comment_ID, $comment_post->ID ); 119 ?>119 ?> 120 120 </item> 121 121 <?php 122 122 endwhile; -
src/wp-includes/widgets/class-wp-widget-archives.php
131 131 ?> 132 132 </ul> 133 133 <?php 134 }134 } 135 135 136 136 echo $args['after_widget']; 137 137 } -
src/wp-includes/widgets/class-wp-widget-text.php
493 493 <p> 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 } 499 499 -
src/wp-login.php
1114 1114 d.value = ''; 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(); 1126 1126 } catch(e){} -
src/wp-signup.php
139 139 <?php if ( $errmsg = $errors->get_error_message( 'blog_title' ) ) { ?> 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 147 147 // Site Language.