Make WordPress Core


Ignore:
Timestamp:
11/18/2011 03:30:31 PM (15 years ago)
Author:
ryan
Message:

Welcome Panel: Consult current theme capabilities. Remove trailing punc from list items. see #11651

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r19327 r19336  
    13041304                                <li>
    13051305                                        <?php echo sprintf(
    1306                                                 __( '<a href="%s">Choose your privacy setting</a>.' ),
     1306                                                __( '<a href="%s">Choose your privacy setting</a>' ),
    13071307                                                esc_url( admin_url('options-privacy.php') )
    13081308                                        ); ?>
     
    13101310                                <li>
    13111311                                        <?php echo sprintf(
    1312                                                 __( '<a href="%s">Select your tagline and time zone</a>.' ),
     1312                                                __( '<a href="%s">Select your tagline and time zone</a>' ),
    13131313                                                esc_url( admin_url('options-general.php') )
    13141314                                        ); ?>
     
    13161316                                <li>
    13171317                                        <?php echo sprintf(
    1318                                                 __( '<a href="%s">Turn comments on or off</a>.' ),
     1318                                                __( '<a href="%s">Turn comments on or off</a>' ),
    13191319                                                esc_url( admin_url('options-discussion.php') )
    13201320                                        ); ?>
     
    13221322                                <li>
    13231323                                        <?php echo sprintf(
    1324                                                 __( '<a href="%s">Fill in your profile</a>.' ),
     1324                                                __( '<a href="%s">Fill in your profile</a>' ),
    13251325                                                esc_url( admin_url('profile.php') )
    13261326                                        ); ?>
     
    13371337                                <li>
    13381338                                        <?php echo sprintf(
    1339                                                 __( 'View the <a href="%1$s">sample page</a> and <a href="%2$s">post</a>.' ),
     1339                                                __( 'View the <a href="%1$s">sample page</a> and <a href="%2$s">post</a>' ),
    13401340                                                esc_url( get_permalink( 2 ) ),
    13411341                                                esc_url( get_permalink( 1 ) )
     
    13441344                                <li>
    13451345                                        <?php echo sprintf(
    1346                                                 __( 'Delete the <a href="%1$s">sample page</a> and <a href="%2$s">post</a>.' ),
     1346                                                __( 'Delete the <a href="%1$s">sample page</a> and <a href="%2$s">post</a>' ),
    13471347                                                esc_url( admin_url('edit.php?post_type=page') ),
    13481348                                                esc_url( admin_url('edit.php') )
     
    13511351                                <li>
    13521352                                        <?php echo sprintf(
    1353                                                 __( '<a href="%s">Create an About Me page</a>.' ),
     1353                                                __( '<a href="%s">Create an About Me page</a>' ),
    13541354                                                esc_url( admin_url('edit.php?post_type=page') )
    13551355                                        ); ?>
     
    13571357                                <li>
    13581358                                        <?php echo sprintf(
    1359                                                 __( '<a href="%s">Write your first post</a>.' ),
     1359                                                __( '<a href="%s">Write your first post</a>' ),
    13601360                                                esc_url( admin_url('post-new.php') )
    13611361                                        ); ?>
     
    13681368                                <?php _e( 'Customize Your Site' ); ?>
    13691369                        </h4>
    1370                         <p><?php printf( __( 'Use the default theme -- %1$s -- or <a href="%2$s">choose a new one</a>. If you stick with %3$s, here are a few ways to make your site look unique.' ), __( 'Twenty Eleven' ), esc_url( admin_url( 'themes.php' ) ), __( 'Twenty Eleven' ) ); ?></p>
     1370                        <?php
     1371                        $ct = current_theme_info();
     1372                        if ( empty ( $ct->stylesheet_dir ) ) :
     1373                        echo '<p>';
     1374                        printf( __( '<a href="%s">Install a theme</a> to get started customizing your site.' ), esc_url( admin_url( 'themes.php' ) ) );
     1375                        echo '</p>';
     1376                        else:
     1377                        echo '<p>';
     1378                        printf( __( 'Use the current theme -- %1$s -- or <a href="%2$s">choose a new one</a>. If you stick with %3$s, here are a few ways to make your site look unique.' ), $ct->title, esc_url( admin_url( 'themes.php' ) ), $ct->title );
     1379                        echo '</p>';
     1380                        ?>
    13711381                        <ul>
     1382                                <?php if ( 'twentyeleven' == $ct->stylesheet ) : ?>
    13721383                                <li>
    13731384                                        <?php echo sprintf(
     
    13761387                                        ); ?>
    13771388                                </li>
     1389                                <?php
     1390                                endif;
     1391                                if ( current_theme_supports( 'custom-background' ) ) :
     1392                                ?>
    13781393                                <li>
    13791394                                        <?php echo sprintf(
     
    13821397                                        ); ?>
    13831398                                </li>
     1399                                <?php
     1400                                endif;
     1401                                if ( current_theme_supports( 'custom-header' ) ) :
     1402                                ?>
    13841403                                <li>
    13851404                                        <?php echo sprintf(
     
    13881407                                        ); ?>
    13891408                                </li>
     1409                                <?php
     1410                                endif;
     1411                                if ( current_theme_supports( 'widgets' ) ) :
     1412                                ?>
    13901413                                <li>
    13911414                                        <?php echo sprintf(
     
    13941417                                        ); ?>
    13951418                                </li>
     1419                                <?php endif; ?>
    13961420                        </ul>
     1421                        <?php endif; ?>
    13971422                </div>
    13981423                <p><?php printf( __( 'Already know what you&#8217;re doing? <a href="%s">Dismiss this message</a>.' ), '#' ) ?></p>
Note: See TracChangeset for help on using the changeset viewer.