Changeset 18749 for trunk/wp-admin/includes/dashboard.php
- Timestamp:
- 09/22/2011 06:23:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r18632 r18749 1260 1260 function wp_dashboard_empty() {} 1261 1261 1262 /** 1263 * Displays a welcome panel to introduce users to WordPress. 1264 * 1265 * @since 3.3 1266 */ 1267 function wp_welcome_panel() { 1268 ?> 1269 <div class="welcome-panel"> 1270 <h3><?php _e( 'Welcome to WordPress!' ); ?></h3> 1271 1272 <a class="welcome-panel-close" href="#"><?php _e('Close'); ?></a> 1273 1274 <?php 1275 // For now, we'll just approximate capabilities for each role. 1276 ?> 1277 1278 <?php if ( current_user_can('switch_themes') ): ?> 1279 <p>[admin placeholder]</p> 1280 <?php elseif ( current_user_can('edit_others_posts') ): ?> 1281 <p>[editor placeholder]</p> 1282 <?php elseif ( current_user_can('publish_posts') ): ?> 1283 <p>[author placeholder]</p> 1284 <?php elseif ( current_user_can('edit_posts') ): ?> 1285 <p>[contributor placeholder]</p> 1286 <?php else: ?> 1287 <p>[subscriber placeholder]</p> 1288 <?php endif; ?> 1289 </div> 1290 <?php 1291 } 1292 1262 1293 ?>
Note: See TracChangeset
for help on using the changeset viewer.