Make WordPress Core

Ticket #6479: 6479.3.patch

File 6479.3.patch, 2.2 KB (added by sabernhardt, 3 years ago)

tagline placeholder in General Settings, empty string for standard blogdescription option

  • src/wp-admin/includes/schema.php

     
    401401                'siteurl'                         => $guessurl,
    402402                'home'                            => $guessurl,
    403403                'blogname'                        => __( 'My Site' ),
    404                 /* translators: Site tagline. */
    405                 'blogdescription'                 => __( 'Just another WordPress site' ),
     404                'blogdescription'                 => '',
    406405                'users_can_register'              => 0,
    407406                'admin_email'                     => 'you@example.com',
    408407                /* translators: Default start of the week. 0 = Sunday, 1 = Monday. */
     
    555554
    556555        // 3.0.0 multisite.
    557556        if ( is_multisite() ) {
    558                 /* translators: %s: Network title. */
    559                 $defaults['blogdescription']     = sprintf( __( 'Just another %s site' ), get_network()->site_name );
    560557                $defaults['permalink_structure'] = '/%year%/%monthnum%/%day%/%postname%/';
    561558        }
    562559
  • src/wp-admin/options-general.php

     
    6666<td><input name="blogname" type="text" id="blogname" value="<?php form_option( 'blogname' ); ?>" class="regular-text" /></td>
    6767</tr>
    6868
     69<?php
     70        /* translators: Site tagline. */
     71        $sample_tagline = __( 'Just another WordPress site' );
     72        if ( 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>
    7482