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.


Built from https://develop.svn.wordpress.org/trunk@44485


git-svn-id: http://core.svn.wordpress.org/trunk@44316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2019-01-09 00:12:49 +00:00
parent 64d846c7c2
commit 0888007275
6 changed files with 14 additions and 3 deletions

View File

@ -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;

File diff suppressed because one or more lines are too long

View File

@ -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;

File diff suppressed because one or more lines are too long

View File

@ -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>

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-alpha-44484';
$wp_version = '5.1-alpha-44485';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.