Make WordPress Core

Ticket #52232: Remove strong tags and keep bold appearance of all labels.diff

File Remove strong tags and keep bold appearance of all labels.diff, 1.6 KB (added by chemiker, 4 years ago)

Remove strong tags and keep bold appearance of all labels.diff - This will remove <strong> tags and keep a bold font-weight for all labels (like it looks in the current WordPress version).

  • src/wp-admin/css/common.css

    diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
    index 9da493c94c..3803e2586d 100644
    a b img { 
    32903290        display: none;
    32913291}
    32923292
     3293#theme-plugin-editor-selector {
     3294        font-weight: 600;
     3295}
    32933296
    32943297#theme-plugin-editor-label {
    32953298        display: inline-block;
  • src/wp-admin/plugin-editor.php

    diff --git a/src/wp-admin/plugin-editor.php b/src/wp-admin/plugin-editor.php
    index 7467ace6aa..a5be77d035 100644
    a b $content = esc_textarea( $content ); 
    216216</div>
    217217<div class="alignright">
    218218        <form action="plugin-editor.php" method="get">
    219                 <strong><label for="plugin"><?php _e( 'Select plugin to edit:' ); ?> </label></strong>
     219                <label for="plugin" id="theme-plugin-editor-selector"><?php _e( 'Select plugin to edit:' ); ?> </label>
    220220                <select name="plugin" id="plugin">
    221221                <?php
    222222                foreach ( $plugins as $plugin_key => $a_plugin ) {
  • src/wp-admin/theme-editor.php

    diff --git a/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php
    index 3cf24cc77e..c162ce4c14 100644
    a b if ( $file_description !== $file_show ) { 
    222222</div>
    223223<div class="alignright">
    224224        <form action="theme-editor.php" method="get">
    225                 <strong><label for="theme"><?php _e( 'Select theme to edit:' ); ?> </label></strong>
     225                <label for="theme" id="theme-plugin-editor-selector"><?php _e( 'Select theme to edit:' ); ?> </label>
    226226                <select name="theme" id="theme">
    227227                <?php
    228228                foreach ( wp_get_themes( array( 'errors' => null ) ) as $a_stylesheet => $a_theme ) {