Make WordPress Core


Ignore:
Timestamp:
08/03/2022 12:18:22 PM (2 years ago)
Author:
audrasjb
Message:

Administration: Change default site tagline to an empty string.

This changeset replaces the default "Just another WordPress site" tagline with an empty string for new installations. The reasoning is:

  1. Not all themes display the tagline;
  2. Not everyone changes the default tagline;
  3. When people don't see the tagline in their theme, they may not realize it is still visible in some places, like feeds.

The string "Just another WordPress site" and the related multisite string: "Just another {NETWORK} site" are now only used as a placeholder for the tagline admin option.

Props markjaquith, Denis-de-Bernardy, westi, RyanMurphy, kovshenin, SergeyBiryukov, chriscct7, tyxla, hyperbrand, karmatosed, lukecavanagh, melchoyce, boemedia, khag7, sabernhardt, audrasjb, peterwilsoncc, costdev, martinkrcho, rafiahmedd.
Fixes #6479.

File:
1 edited

Legend:

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

    r53186 r53815  
    6767</tr>
    6868
     69<?php
     70/* translators: Site tagline. */
     71$sample_tagline = __( 'Just another WordPress site' );
     72if ( is_multisite() ) {
     73    /* translators: %s: Network title. */
     74    $sample_tagline = sprintf( __( 'Just another %s site' ), get_network()->site_name );
     75}
     76?>
    6977<tr>
    7078<th scope="row"><label for="blogdescription"><?php _e( 'Tagline' ); ?></label></th>
    71 <td><input name="blogdescription" type="text" id="blogdescription" aria-describedby="tagline-description" value="<?php form_option( 'blogdescription' ); ?>" class="regular-text" />
     79<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; ?>" />
    7280<p class="description" id="tagline-description"><?php _e( 'In a few words, explain what this site is about.' ); ?></p></td>
    7381</tr>
Note: See TracChangeset for help on using the changeset viewer.