Make WordPress Core


Ignore:
Timestamp:
06/21/2023 08:48:31 PM (18 months ago)
Author:
audrasjb
Message:

Administration: Replace Tagline option placeholder with a description.

As placeholders may introduce confusion about whether the example is the input's predefined value or not, this changeset moves the "Just another WordPress
site" historic tagline as an example quoted in the field's description.

Props Cybr, audrasjb, sabernhardt, pavanpatil1, tb1909.
Fixes #57675.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-general.php

    r55452 r55969  
    8585    $sample_tagline = sprintf( __( 'Just another %s site' ), get_network()->site_name );
    8686}
     87$tagline_description = sprintf(
     88    '%1$s %2$s',
     89    __( 'In a few words, explain what this site is about.' ),
     90    /* translators: %s: Site tagline example. */
     91    sprintf( __( 'Example: “%s.”' ), $sample_tagline )
     92);
    8793?>
    8894<tr>
    8995<th scope="row"><label for="blogdescription"><?php _e( 'Tagline' ); ?></label></th>
    90 <td><input name="blogdescription" type="text" id="blogdescription" aria-describedby="tagline-description" value="<?php form_option( 'blogdescription' ); ?>" class="regular-text" placeholder="<?php echo $sample_tagline; ?>" />
    91 <p class="description" id="tagline-description"><?php _e( 'In a few words, explain what this site is about.' ); ?></p></td>
     96<td><input name="blogdescription" type="text" id="blogdescription" aria-describedby="tagline-description" value="<?php form_option( 'blogdescription' ); ?>" class="regular-text" />
     97<p class="description" id="tagline-description"><?php echo $tagline_description; ?></p></td>
    9298</tr>
    9399
Note: See TracChangeset for help on using the changeset viewer.