Make WordPress Core

Ticket #56457: 56457.patch

File 56457.patch, 8.0 KB (added by haritpanchal, 4 years ago)

Patch Added

  • src/wp-admin/edit-comments.php

    diff --git a/src/wp-admin/edit-comments.php b/src/wp-admin/edit-comments.php
    index 28be5c9df9..ed34545584 100644
    a b if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $  
    345345                        }
    346346                }
    347347
    348                 echo '<div id="moderated" class="updated notice is-dismissible"><p>' . implode( "<br/>\n", $messages ) . '</p></div>';
     348                echo '<div id="moderated" class="updated notice is-dismissible"><p>' . implode( "<br />\n", $messages ) . '</p></div>';
    349349        }
    350350}
    351351?>
  • src/wp-admin/includes/class-custom-background.php

    diff --git a/src/wp-admin/includes/class-custom-background.php b/src/wp-admin/includes/class-custom-background.php
    index 4914ebde39..f67105b0db 100644
    a b class Custom_Background {  
    306306<td>
    307307<form method="post">
    308308                        <?php wp_nonce_field( 'custom-background-remove', '_wpnonce-custom-background-remove' ); ?>
    309                         <?php submit_button( __( 'Remove Background Image' ), '', 'remove-background', false ); ?><br/>
     309                        <?php submit_button( __( 'Remove Background Image' ), '', 'remove-background', false ); ?><br />
    310310                        <?php _e( 'This will remove the background image. You will not be able to restore any customizations.' ); ?>
    311311</form>
    312312</td>
    class Custom_Background {  
    320320<td>
    321321<form method="post">
    322322                        <?php wp_nonce_field( 'custom-background-reset', '_wpnonce-custom-background-reset' ); ?>
    323                         <?php submit_button( __( 'Restore Original Image' ), '', 'reset-background', false ); ?><br/>
     323                        <?php submit_button( __( 'Restore Original Image' ), '', 'reset-background', false ); ?><br />
    324324                        <?php _e( 'This will restore the original background image. You will not be able to restore any customizations.' ); ?>
    325325</form>
    326326</td>
  • src/wp-admin/includes/class-wp-filesystem-base.php

    diff --git a/src/wp-admin/includes/class-wp-filesystem-base.php b/src/wp-admin/includes/class-wp-filesystem-base.php
    index 607915bfec..8d83b24dd6 100644
    a b class WP_Filesystem_Base {  
    262262
    263263                if ( $this->verbose ) {
    264264                        /* translators: 1: Folder to locate, 2: Folder to start searching from. */
    265                         printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br/>\n", $folder, $base );
     265                        printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br />\n", $folder, $base );
    266266                }
    267267
    268268                $folder_parts     = explode( '/', $folder );
    class WP_Filesystem_Base {  
    291291
    292292                                if ( $this->verbose ) {
    293293                                        /* translators: %s: Directory name. */
    294                                         printf( "\n" . __( 'Changing to %s' ) . "<br/>\n", $newdir );
     294                                        printf( "\n" . __( 'Changing to %s' ) . "<br />\n", $newdir );
    295295                                }
    296296
    297297                                // Only search for the remaining path tokens in the directory, not the full path again.
    class WP_Filesystem_Base {  
    309309                if ( isset( $files[ $last_path ] ) ) {
    310310                        if ( $this->verbose ) {
    311311                                /* translators: %s: Directory name. */
    312                                 printf( "\n" . __( 'Found %s' ) . "<br/>\n", $base . $last_path );
     312                                printf( "\n" . __( 'Found %s' ) . "<br />\n", $base . $last_path );
    313313                        }
    314314
    315315                        return trailingslashit( $base . $last_path );
  • src/wp-admin/includes/class-wp-ms-users-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-ms-users-list-table.php b/src/wp-admin/includes/class-wp-ms-users-list-table.php
    index d2ba7c72b5..f9eb81dc8d 100644
    a b class WP_MS_Users_List_Table extends WP_List_Table {  
    443443                                echo "<span class='$action'>$link$sep</span>";
    444444                        }
    445445
    446                         echo '</small></span><br/>';
     446                        echo '</small></span><br />';
    447447                }
    448448        }
    449449
  • src/wp-admin/includes/class-wp-plugins-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php
    index d5a4a93e3f..217689ef91 100644
    a b class WP_Plugins_List_Table extends WP_List_Table {  
    752752                        $plugin_name = $plugin_file;
    753753
    754754                        if ( $plugin_file !== $plugin_data['Name'] ) {
    755                                 $plugin_name .= '<br/>' . $plugin_data['Name'];
     755                                $plugin_name .= '<br />' . $plugin_data['Name'];
    756756                        }
    757757
    758758                        if ( true === ( $dropins[ $plugin_file ][1] ) ) { // Doesn't require a constant.
  • src/wp-admin/install.php

    diff --git a/src/wp-admin/install.php b/src/wp-admin/install.php
    index 8ff550c951..635113287d 100644
    a b function display_setup_form( $error = null ) {  
    187187                                        if ( has_action( 'blog_privacy_selector' ) ) {
    188188                                                ?>
    189189                                                <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( 1, $blog_public ); ?> />
    190                                                 <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br/>
     190                                                <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
    191191                                                <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked( 0, $blog_public ); ?> />
    192192                                                <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
    193193                                                <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site &mdash; it is up to search engines to honor your request.' ); ?></p>
  • src/wp-admin/network/settings.php

    diff --git a/src/wp-admin/network/settings.php b/src/wp-admin/network/settings.php
    index 75c13ae863..8de34f47d8 100644
    a b if ( isset( $_GET['updated'] ) ) {  
    497497                                                echo '<fieldset><legend class="screen-reader-text">' . __( 'Enable menus' ) . '</legend>';
    498498
    499499                                                foreach ( (array) $menu_items as $key => $val ) {
    500                                                         echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . ' /> ' . esc_html( $val ) . '</label><br/>';
     500                                                        echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . ' /> ' . esc_html( $val ) . '</label><br />';
    501501                                                }
    502502
    503503                                                echo '</fieldset>';
  • src/wp-admin/network/site-info.php

    diff --git a/src/wp-admin/network/site-info.php b/src/wp-admin/network/site-info.php
    index 8cad4ead2a..894ebf048f 100644
    a b if ( ! empty( $messages ) ) {  
    197197                        <legend class="screen-reader-text"><?php _e( 'Set site attributes' ); ?></legend>
    198198                        <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?>
    199199                                <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); ?> <?php disabled( ! in_array( (int) $details->$field_key, array( 0, 1 ), true ) ); ?> />
    200                                 <?php echo $field_label; ?></label><br/>
     200                                <?php echo $field_label; ?></label><br />
    201201                        <?php endforeach; ?>
    202202                        <fieldset>
    203203                        </td>
  • src/wp-admin/options-reading.php

    diff --git a/src/wp-admin/options-reading.php b/src/wp-admin/options-reading.php
    index 2c89f14474..cf3dd98e5b 100644
    a b else :  
    181181<td><fieldset><legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </span></legend>
    182182<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
    183183        <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
    184         <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br/>
     184        <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
    185185        <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
    186186        <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
    187187        <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site &mdash; it is up to search engines to honor your request.' ); ?></p>