Changeset 17849
- Timestamp:
- 05/10/2011 07:18:16 PM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r17800 r17849 191 191 <div class="wrap"> 192 192 <?php screen_icon(); ?> 193 <h2><?php 194 echo esc_html( $post_type_object->labels->name ); 195 favorite_actions( $current_screen ); 193 <h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php 196 194 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 197 195 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?> -
trunk/wp-admin/index.php
r17800 r17849 57 57 <div class="wrap"> 58 58 <?php screen_icon(); ?> 59 <h2><?php 60 echo esc_html( $title ); 61 favorite_actions( $current_screen ); ?> 62 </h2> 59 <h2><?php echo esc_html( $title ); ?></h2> 63 60 64 61 <div id="dashboard-widgets-wrap"> -
trunk/wp-admin/link-manager.php
r17800 r17849 60 60 <div class="wrap nosubsub"> 61 61 <?php screen_icon(); ?> 62 <h2><?php 63 echo esc_html( $title ); 64 favorite_actions( $current_screen ); 62 <h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php 65 63 if ( !empty($_REQUEST['s']) ) 66 64 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( stripslashes($_REQUEST['s']) ) ); ?> -
trunk/wp-admin/network/sites.php
r17800 r17849 100 100 <div class="wrap"> 101 101 <?php screen_icon('ms-admin'); ?> 102 <h2><?php 103 _e('Sites'); 104 echo $msg; 105 if ( current_user_can( 'create_sites') ) { 106 favorite_actions( $current_screen ); 107 } 108 if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) {102 <h2><?php _e('Sites') ?> 103 <?php echo $msg; ?> 104 <?php if ( current_user_can( 'create_sites') ) : ?> 105 <a href="<?php echo network_admin_url('site-new.php'); ?>" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'site' ); ?></a> 106 <?php endif; ?> 107 108 <?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) { 109 109 printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) ); 110 110 } ?> -
trunk/wp-admin/network/themes.php
r17800 r17849 35 35 36 36 if ( $action ) { 37 $allowed_themes = get_site_option( 'allowedthemes' ); 37 $allowed_themes = get_site_option( 'allowedthemes' ); 38 38 switch ( $action ) { 39 39 case 'enable': … … 101 101 unset( $themes[$key] ); 102 102 } else { 103 $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) ); 103 $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) ); 104 104 $theme_info[ $theme ] = $data; 105 105 } 106 106 } 107 107 108 108 if ( empty( $themes ) ) { 109 109 wp_redirect( add_query_arg( 'error', 'main', $referer ) ); … … 163 163 foreach ( $themes as $theme ) 164 164 $delete_result = delete_theme( $theme, esc_url( add_query_arg( array('verify-delete' => 1), $_SERVER['REQUEST_URI'] ) ) ); 165 $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 165 $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 166 166 wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) ); 167 167 exit; … … 200 200 <div class="wrap"> 201 201 <?php screen_icon('themes'); ?> 202 <h2><?php 203 echo esc_html( $title ); 204 if ( current_user_can('install_themes') ) { 205 favorite_actions( $current_screen ); 206 } 207 if ( $s ) 208 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 202 <h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } 203 if ( $s ) 204 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 209 205 </h2> 210 206 -
trunk/wp-admin/network/users.php
r17800 r17849 73 73 <div class="wrap"> 74 74 <?php screen_icon(); ?> 75 <h2><?php 76 esc_html_e( 'Users' ); 77 if ( current_user_can( 'create_users' ) ) { 78 favorite_actions( $current_screen ); 79 } 80 if ( !empty( $usersearch ) ) { 81 printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) ); 82 } 75 <h2><?php esc_html_e( 'Users' ); 76 if ( current_user_can( 'create_users') ) : ?> 77 <a href="<?php echo network_admin_url('user-new.php'); ?>" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php 78 endif; 79 80 if ( !empty( $usersearch ) ) 81 printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) ); 83 82 ?> 84 83 </h2> -
trunk/wp-admin/plugins.php
r17806 r17849 386 386 <div class="wrap"> 387 387 <?php screen_icon(); ?> 388 <h2><?php 389 echo esc_html( $title ); 390 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { 391 favorite_actions( $current_screen ); 392 } 388 <h2><?php echo esc_html( $title ); 389 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?> 390 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a> 391 <?php } 393 392 if ( $s ) 394 393 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> -
trunk/wp-admin/themes.php
r17800 r17849 72 72 <div class="wrap"><?php 73 73 screen_icon(); 74 75 74 if ( !is_multisite() ) : ?> 76 77 <a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a><?php 78 if ( current_user_can('install_themes') ) :79 ?><a href="<?php echo admin_url( 'theme-install.php'); ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a><?php 80 75 <h2 class="nav-tab-wrapper"> 76 <a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a> 77 <?php if ( current_user_can('install_themes') ) : ?> 78 <a href="<?php echo admin_url( 'theme-install.php'); ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a> 79 <?php endif; 81 80 else : ?> 82 83 81 <h2> 82 <?php echo esc_html( $title ); ?> 84 83 <?php endif; ?> 85 84 </h2> -
trunk/wp-admin/upload.php
r17800 r17849 161 161 <div class="wrap"> 162 162 <?php screen_icon(); ?> 163 <h2><?php 164 echo esc_html( $title ); 165 favorite_actions( $current_screen ); 163 <h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> <?php 166 164 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 167 165 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?> -
trunk/wp-admin/users.php
r17800 r17849 360 360 <?php 361 361 echo esc_html( $title ); 362 favorite_actions( $current_screen ); 362 if ( current_user_can( 'create_users' ) ) { ?> 363 <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> 364 <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> 365 <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 366 <?php } 367 363 368 if ( $usersearch ) 364 369 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?>
Note: See TracChangeset
for help on using the changeset viewer.