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. git-svn-id: https://develop.svn.wordpress.org/trunk@44485 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
78064d5ce3
commit
b9e752770c
@ -245,6 +245,11 @@
|
||||
top: -1px;
|
||||
}
|
||||
|
||||
.welcome-panel .welcome-setup-home:before {
|
||||
content: "\f102";
|
||||
top: -1px;
|
||||
}
|
||||
|
||||
.welcome-panel .welcome-view-site:before {
|
||||
content: "\f115";
|
||||
top: -2px;
|
||||
|
@ -1766,6 +1766,7 @@ function wp_welcome_panel() {
|
||||
<?php else : ?>
|
||||
<li><?php printf( '<a href="%s" class="welcome-icon welcome-write-blog">' . __( 'Write your first blog post' ) . '</a>', admin_url( 'post-new.php' ) ); ?></li>
|
||||
<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>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
<li><?php printf( '<a href="%s" class="welcome-icon welcome-view-site">' . __( 'View your site' ) . '</a>', home_url( '/' ) ); ?></li>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user