WordPress.org

Make WordPress Core

Changeset 44485


Ignore:
Timestamp:
01/09/2019 12:11:25 AM (17 months ago)
Author:
pento
Message:

Admin: Add a "Set up your homepage" link to the Welcome panel.

As many WordPress sites use a static homepage rather than a blog, this link gives a natural next step for new sites owners wanting to configure their site in this manner.

Props professor44, joyously, nielslange, mukesh27, melchoyce.
Fixes #45019.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/dashboard.css

    r43006 r44485  
    246246}
    247247
     248.welcome-panel .welcome-setup-home:before {
     249    content: "\f102";
     250    top: -1px;
     251}
     252
    248253.welcome-panel .welcome-view-site:before {
    249254    content: "\f115";
  • trunk/src/wp-admin/includes/dashboard.php

    r44476 r44485  
    17671767            <li><?php printf( '<a href="%s" class="welcome-icon welcome-write-blog">' . __( 'Write your first blog post' ) . '</a>', admin_url( 'post-new.php' ) ); ?></li>
    17681768            <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Add an About page' ) . '</a>', admin_url( 'post-new.php?post_type=page' ) ); ?></li>
     1769            <li><?php printf( '<a href="%s" class="welcome-icon welcome-setup-home">' . __( 'Set up your homepage' ) . '</a>', current_user_can( 'customize' ) ? add_query_arg( 'autofocus[section]', 'static_front_page', admin_url( 'customize.php' ) ) : admin_url( 'options-reading.php' ) ); ?></li>
    17691770        <?php endif; ?>
    17701771            <li><?php printf( '<a href="%s" class="welcome-icon welcome-view-site">' . __( 'View your site' ) . '</a>', home_url( '/' ) ); ?></li>
Note: See TracChangeset for help on using the changeset viewer.