mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
First half of new welcome panel formatting. props chexee. see #11651.
git-svn-id: https://develop.svn.wordpress.org/trunk@19145 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1265,6 +1265,7 @@ function wp_dashboard_empty() {}
|
||||
* @since 3.3
|
||||
*/
|
||||
function wp_welcome_panel() {
|
||||
global $wp_version;
|
||||
|
||||
if ( ! current_user_can( 'edit_theme_options' ) )
|
||||
return;
|
||||
@@ -1274,6 +1275,7 @@ function wp_welcome_panel() {
|
||||
if ( ! get_user_option( 'show_welcome_panel' ) )
|
||||
$classes .= ' hidden';
|
||||
|
||||
list( $display_version ) = explode( '-', $wp_version );
|
||||
?>
|
||||
<div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>">
|
||||
|
||||
@@ -1281,6 +1283,10 @@ function wp_welcome_panel() {
|
||||
|
||||
<a class="welcome-panel-close" href="#"><?php _e('Close'); ?></a>
|
||||
|
||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||
|
||||
<div class="welcome-panel-content">
|
||||
|
||||
<h3><?php _e( 'Welcome to WordPress!' ); ?></h3>
|
||||
<p><?php _e( 'Welcome to your new WordPress site! Here are some things most people do when they set up a new WordPress site. To get started, use the links below and we’ll give you some extra help with these tasks.' ); ?></p>
|
||||
|
||||
@@ -1351,6 +1357,7 @@ function wp_welcome_panel() {
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user