Make WordPress Core

Ticket #45939: 45939.patch

File 45939.patch, 9.0 KB (added by mukesh27, 6 years ago)

Patch.

  • src/wp-admin/custom-background.php

     
    293293<td>
    294294<form method="post">
    295295                        <?php wp_nonce_field( 'custom-background-remove', '_wpnonce-custom-background-remove' ); ?>
    296                         <?php submit_button( __( 'Remove Background Image' ), '', 'remove-background', false ); ?><br/>
     296                        <?php submit_button( __( 'Remove Background Image' ), '', 'remove-background', false ); ?><br />
    297297                        <?php _e( 'This will remove the background image. You will not be able to restore any customizations.' ); ?>
    298298</form>
    299299</td>
     
    307307<td>
    308308<form method="post">
    309309                        <?php wp_nonce_field( 'custom-background-reset', '_wpnonce-custom-background-reset' ); ?>
    310                         <?php submit_button( __( 'Restore Original Image' ), '', 'reset-background', false ); ?><br/>
     310                        <?php submit_button( __( 'Restore Original Image' ), '', 'reset-background', false ); ?><br />
    311311                        <?php _e( 'This will restore the original background image. You will not be able to restore any customizations.' ); ?>
    312312</form>
    313313</td>
  • src/wp-admin/edit-comments.php

     
    321321                        }
    322322                }
    323323
    324                 echo '<div id="moderated" class="updated notice is-dismissible"><p>' . implode( "<br/>\n", $messages ) . '</p></div>';
     324                echo '<div id="moderated" class="updated notice is-dismissible"><p>' . implode( "<br />\n", $messages ) . '</p></div>';
    325325        }
    326326}
    327327?>
  • src/wp-admin/includes/class-wp-filesystem-base.php

     
    249249
    250250                if ( $this->verbose ) {
    251251                        /* translators: 1: folder to locate, 2: folder to start searching from */
    252                         printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br/>\n", $folder, $base );
     252                        printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br />\n", $folder, $base );
    253253                }
    254254
    255255                $folder_parts     = explode( '/', $folder );
     
    277277                                $newdir = trailingslashit( path_join( $base, $key ) );
    278278                                if ( $this->verbose ) {
    279279                                        /* translators: %s: directory name */
    280                                         printf( "\n" . __( 'Changing to %s' ) . "<br/>\n", $newdir );
     280                                        printf( "\n" . __( 'Changing to %s' ) . "<br />\n", $newdir );
    281281                                }
    282282
    283283                                // Only search for the remaining path tokens in the directory, not the full path again.
     
    293293                if ( isset( $files[ $last_path ] ) ) {
    294294                        if ( $this->verbose ) {
    295295                                /* translators: %s: directory name */
    296                                 printf( "\n" . __( 'Found %s' ) . "<br/>\n", $base . $last_path );
     296                                printf( "\n" . __( 'Found %s' ) . "<br />\n", $base . $last_path );
    297297                        }
    298298                        return trailingslashit( $base . $last_path );
    299299                }
  • src/wp-admin/includes/class-wp-ms-users-list-table.php

     
    380380                                $sep = ( $i == $action_count ) ? '' : ' | ';
    381381                                echo "<span class='$action'>$link$sep</span>";
    382382                        }
    383                         echo '</small></span><br/>';
     383                        echo '</small></span><br />';
    384384                }
    385385        }
    386386
  • src/wp-admin/includes/class-wp-plugins-list-table.php

     
    608608                        $dropins     = _get_dropins();
    609609                        $plugin_name = $plugin_file;
    610610                        if ( $plugin_file != $plugin_data['Name'] ) {
    611                                 $plugin_name .= '<br/>' . $plugin_data['Name'];
     611                                $plugin_name .= '<br />' . $plugin_data['Name'];
    612612                        }
    613613                        if ( true === ( $dropins[ $plugin_file ][1] ) ) { // Doesn't require a constant
    614614                                $is_active   = true;
  • src/wp-admin/install.php

     
    191191                                        if ( has_action( 'blog_privacy_selector' ) ) {
    192192                                                ?>
    193193                                                <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( 1, $blog_public ); ?> />
    194                                                 <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br/>
     194                                                <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
    195195                                                <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked( 0, $blog_public ); ?> />
    196196                                                <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
    197197                                                <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

     
    459459                                $fieldset_end = '</fieldset>';
    460460                        }
    461461                        foreach ( (array) $menu_items as $key => $val ) {
    462                                 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/>';
     462                                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 />';
    463463                        }
    464464                        echo $fieldset_end;
    465465                        ?>
  • src/wp-admin/network/site-info.php

     
    195195                        <legend class="screen-reader-text"><?php _e( 'Set site attributes' ); ?></legend>
    196196                        <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?>
    197197                                <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); ?> <?php disabled( ! in_array( $details->$field_key, array( 0, 1 ) ) ); ?> />
    198                                 <?php echo $field_label; ?></label><br/>
     198                                <?php echo $field_label; ?></label><br />
    199199                        <?php endforeach; ?>
    200200                        <fieldset>
    201201                        </td>
  • src/wp-admin/options-reading.php

     
    149149<td><fieldset><legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?> </span></legend>
    150150<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
    151151        <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
    152         <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br/>
     152        <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
    153153        <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
    154154        <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
    155155        <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-includes/widgets/class-wp-widget-archives.php

     
    183183                <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" /></p>
    184184                <p>
    185185                        <input class="checkbox" type="checkbox"<?php checked( $instance['dropdown'] ); ?> id="<?php echo $this->get_field_id( 'dropdown' ); ?>" name="<?php echo $this->get_field_name( 'dropdown' ); ?>" /> <label for="<?php echo $this->get_field_id( 'dropdown' ); ?>"><?php _e( 'Display as dropdown' ); ?></label>
    186                         <br/>
     186                        <br />
    187187                        <input class="checkbox" type="checkbox"<?php checked( $instance['count'] ); ?> id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" /> <label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php _e( 'Show post counts' ); ?></label>
    188188                </p>
    189189                <?php