Changeset 19418 for trunk/wp-admin/includes/dashboard.php
- Timestamp:
- 11/23/2011 06:30:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r19363 r19418 1277 1277 $classes = 'welcome-panel'; 1278 1278 1279 if ( ! get_user_option( 'show_welcome_panel' ) ) 1279 $option = get_user_meta( get_current_user_id(), 'show_welcome_panel', true ); 1280 // 0 = hide, 1 = toggled to show or single site creator, 2 = multisite site owner 1281 $hide = 0 == $option || ( 2 == $option && wp_get_current_user()->user_email != get_option( 'admin_email' ) ); 1282 if ( $hide ) 1280 1283 $classes .= ' hidden'; 1281 1284 … … 1284 1287 <div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>"> 1285 1288 <?php wp_nonce_field( 'welcome-panel-nonce', 'welcomepanelnonce', false ); ?> 1286 <a class="welcome-panel-close" href=" #"><?php _e('Dismiss'); ?></a>1289 <a class="welcome-panel-close" href="<?php echo esc_url( admin_url( '?welcome=0' ) ); ?>"><?php _e('Dismiss'); ?></a> 1287 1290 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> 1288 1291 … … 1350 1353 </div> 1351 1354 </div> 1352 <p class="welcome-panel-dismiss"><?php _e( 'Already know what you’re doing? <a href="#">Dismiss this message</a>.'); ?></p>1355 <p class="welcome-panel-dismiss"><?php printf( __( 'Already know what you’re doing? <a href="%s">Dismiss this message</a>.' ), esc_url( admin_url( '?welcome=0' ) ) ); ?></p> 1353 1356 </div> 1354 1357 </div>
Note: See TracChangeset
for help on using the changeset viewer.