Changeset 26518
- Timestamp:
- 12/02/2013 03:52:23 AM (11 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 55 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/comment.php
r25880 r26518 116 116 <div class="narrow"> 117 117 118 <?php screen_icon(); ?>119 118 <h2><?php echo esc_html( $title ); ?></h2> 120 119 -
trunk/src/wp-admin/custom-background.php
r26352 r26518 180 180 ?> 181 181 <div class="wrap" id="custom-background"> 182 <?php screen_icon(); ?>183 182 <h2><?php _e('Custom Background'); ?></h2> 184 183 <?php if ( !empty($this->updated) ) { ?> -
trunk/src/wp-admin/custom-header.php
r25868 r26518 451 451 452 452 <div class="wrap"> 453 <?php screen_icon(); ?>454 453 <h2><?php _e('Custom Header'); ?></h2> 455 454 … … 725 724 726 725 <div class="wrap"> 727 <?php screen_icon(); ?>728 726 <h2><?php _e( 'Crop Header Image' ); ?></h2> 729 727 -
trunk/src/wp-admin/edit-comments.php
r25616 r26518 141 141 142 142 <div class="wrap"> 143 <?php screen_icon(); ?>144 143 <h2><?php 145 144 if ( $post_id ) -
trunk/src/wp-admin/edit-form-advanced.php
r25991 r26518 360 360 361 361 <div class="wrap"> 362 <?php screen_icon(); ?>363 362 <h2><?php 364 363 echo esc_html( $title ); -
trunk/src/wp-admin/edit-form-comment.php
r25983 r26518 14 14 <?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?> 15 15 <div class="wrap"> 16 <?php screen_icon(); ?>17 16 <h2><?php _e('Edit Comment'); ?></h2> 18 17 -
trunk/src/wp-admin/edit-link-form.php
r26081 r26518 71 71 72 72 <div class="wrap"> 73 <?php screen_icon(); ?>74 73 <h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h2> 75 74 -
trunk/src/wp-admin/edit-tag-form.php
r26339 r26518 28 28 29 29 <div class="wrap"> 30 <?php screen_icon(); ?>31 30 <h2><?php echo $tax->labels->edit_item; ?></h2> 32 31 <div id="ajax-response"></div> -
trunk/src/wp-admin/edit-tags.php
r26339 r26518 302 302 303 303 <div class="wrap nosubsub"> 304 <?php screen_icon(); ?>305 304 <h2><?php echo esc_html( $title ); 306 305 if ( !empty($_REQUEST['s']) ) -
trunk/src/wp-admin/edit.php
r25616 r26518 266 266 ?> 267 267 <div class="wrap"> 268 <?php screen_icon(); ?>269 268 <h2><?php 270 269 echo esc_html( $post_type_object->labels->name ); -
trunk/src/wp-admin/export.php
r25616 r26518 145 145 146 146 <div class="wrap"> 147 <?php screen_icon(); ?>148 147 <h2><?php echo esc_html( $title ); ?></h2> 149 148 -
trunk/src/wp-admin/import.php
r25616 r26518 53 53 54 54 <div class="wrap"> 55 <?php screen_icon(); ?>56 55 <h2><?php echo esc_html( $title ); ?></h2> 57 56 <?php if ( ! empty( $_GET['invalid'] ) ) : ?> -
trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
r26015 r26518 52 52 $this->done_header = true; 53 53 echo '<div class="wrap">'; 54 screen_icon();55 54 echo '<h2>' . $this->options['title'] . '</h2>'; 56 55 } -
trunk/src/wp-admin/includes/deprecated.php
r26220 r26518 1135 1135 _deprecated_function( __FUNCTION__, '3.7' ); 1136 1136 } 1137 1138 /** 1139 * Displays a screen icon. 1140 * 1141 * @uses get_screen_icon() 1142 * @since 2.7.0 1143 * @deprecated 3.8.0 1144 * 1145 * @param string|WP_Screen $screen Optional. Accepts a screen object (and defaults to the current screen object) 1146 * which it uses to determine an icon HTML ID. Or, if a string is provided, it is used to form the icon HTML ID. 1147 */ 1148 function screen_icon( $screen = '' ) { 1149 _deprecated_function( __FUNCTION__, '3.8' ); 1150 echo get_screen_icon( $screen ); 1151 } 1152 1153 /** 1154 * Gets a screen icon. 1155 * 1156 * @since 3.2.0 1157 * @deprecated 3.8.0 1158 * 1159 * @global $post_ID 1160 * @param string|WP_Screen $screen Optional. Accepts a screen object (and defaults to the current screen object) 1161 * which it uses to determine an icon HTML ID. Or, if a string is provided, it is used to form the icon HTML ID. 1162 * @return string HTML for the screen icon. 1163 */ 1164 function get_screen_icon( $screen = '' ) { 1165 _deprecated_function( __FUNCTION__, '3.8' ); 1166 if ( empty( $screen ) ) 1167 $screen = get_current_screen(); 1168 elseif ( is_string( $screen ) ) 1169 $icon_id = $screen; 1170 1171 $class = 'icon32'; 1172 1173 if ( empty( $icon_id ) ) { 1174 if ( ! empty( $screen->parent_base ) ) 1175 $icon_id = $screen->parent_base; 1176 else 1177 $icon_id = $screen->base; 1178 1179 if ( 'page' == $screen->post_type ) 1180 $icon_id = 'edit-pages'; 1181 1182 if ( $screen->post_type ) 1183 $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $screen->post_type ); 1184 } 1185 1186 return '<div id="icon-' . esc_attr( $icon_id ) . '" class="' . $class . '"><br /></div>'; 1187 } -
trunk/src/wp-admin/includes/screen.php
r26456 r26518 123 123 124 124 $current_screen->add_option( $option, $args ); 125 }126 127 /**128 * Displays a screen icon.129 *130 * @uses get_screen_icon()131 * @since 2.7.0132 *133 * @param string|WP_Screen $screen Optional. Accepts a screen object (and defaults to the current screen object)134 * which it uses to determine an icon HTML ID. Or, if a string is provided, it is used to form the icon HTML ID.135 */136 function screen_icon( $screen = '' ) {137 echo get_screen_icon( $screen );138 }139 140 /**141 * Gets a screen icon.142 *143 * @since 3.2.0144 *145 * @global $post_ID146 * @param string|WP_Screen $screen Optional. Accepts a screen object (and defaults to the current screen object)147 * which it uses to determine an icon HTML ID. Or, if a string is provided, it is used to form the icon HTML ID.148 * @return string HTML for the screen icon.149 */150 function get_screen_icon( $screen = '' ) {151 if ( empty( $screen ) )152 $screen = get_current_screen();153 elseif ( is_string( $screen ) )154 $icon_id = $screen;155 156 $class = 'icon32';157 158 if ( empty( $icon_id ) ) {159 if ( ! empty( $screen->parent_base ) )160 $icon_id = $screen->parent_base;161 else162 $icon_id = $screen->base;163 164 if ( 'page' == $screen->post_type )165 $icon_id = 'edit-pages';166 167 if ( $screen->post_type )168 $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $screen->post_type );169 }170 171 return '<div id="icon-' . esc_attr( $icon_id ) . '" class="' . $class . '"><br /></div>';172 125 } 173 126 -
trunk/src/wp-admin/index.php
r26183 r26518 94 94 95 95 <div class="wrap"> 96 <?php screen_icon(); ?>97 96 <h2><?php echo esc_html( $title ); ?></h2> 98 97 -
trunk/src/wp-admin/link-manager.php
r25616 r26518 70 70 71 71 <div class="wrap nosubsub"> 72 <?php screen_icon(); ?>73 72 <h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php 74 73 if ( !empty($_REQUEST['s']) ) -
trunk/src/wp-admin/media-new.php
r25616 r26518 66 66 ?> 67 67 <div class="wrap"> 68 <?php screen_icon(); ?>69 68 <h2><?php echo esc_html( $title ); ?></h2> 70 69 -
trunk/src/wp-admin/media.php
r25616 r26518 104 104 105 105 <div class="wrap"> 106 <?php screen_icon(); ?>107 106 <h2> 108 107 <?php -
trunk/src/wp-admin/ms-delete-site.php
r25616 r26518 33 33 34 34 echo '<div class="wrap">'; 35 screen_icon();36 35 echo '<h2>' . esc_html( $title ) . '</h2>'; 37 36 -
trunk/src/wp-admin/my-sites.php
r26368 r26518 57 57 58 58 <div class="wrap"> 59 <?php screen_icon(); ?>60 59 <h2><?php echo esc_html( $title ); ?></h2> 61 60 <?php -
trunk/src/wp-admin/nav-menus.php
r26024 r26518 534 534 ?> 535 535 <div class="wrap"> 536 <?php screen_icon(); ?>537 536 <h2 class="nav-tab-wrapper"> 538 537 <a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php if ( ! isset( $_GET['action'] ) || isset( $_GET['action'] ) && 'locations' != $_GET['action'] ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a> -
trunk/src/wp-admin/network.php
r26478 r26518 137 137 ?> 138 138 <div class="wrap"> 139 <?php screen_icon('tools'); ?>140 139 <h2><?php echo esc_html( $title ); ?></h2> 141 140 -
trunk/src/wp-admin/network/index.php
r26392 r26518 66 66 67 67 <div class="wrap"> 68 <?php screen_icon(); ?>69 68 <h2><?php echo esc_html( $title ); ?></h2> 70 69 -
trunk/src/wp-admin/network/settings.php
r26478 r26518 85 85 86 86 <div class="wrap"> 87 <?php screen_icon('options-general'); ?>88 87 <h2><?php echo esc_html( $title ); ?></h2> 89 88 <form method="post" action="settings.php"> -
trunk/src/wp-admin/network/site-info.php
r25616 r26518 97 97 98 98 <div class="wrap"> 99 <?php screen_icon('ms-admin'); ?>100 99 <h2 id="edit-site"><?php echo $title_site_url_linked ?></h2> 101 100 <h3 class="nav-tab-wrapper"> -
trunk/src/wp-admin/network/site-new.php
r26236 r26518 112 112 113 113 <div class="wrap"> 114 <?php screen_icon('ms-admin'); ?>115 114 <h2 id="add-new-site"><?php _e('Add New Site') ?></h2> 116 115 <?php -
trunk/src/wp-admin/network/site-settings.php
r25963 r26518 88 88 89 89 <div class="wrap"> 90 <?php screen_icon('ms-admin'); ?>91 90 <h2 id="edit-site"><?php echo $title_site_url_linked ?></h2> 92 91 <h3 class="nav-tab-wrapper"> -
trunk/src/wp-admin/network/site-themes.php
r25616 r26518 136 136 137 137 <div class="wrap"> 138 <?php screen_icon('ms-admin'); ?>139 138 <h2 id="edit-site"><?php echo $title_site_url_linked ?></h2> 140 139 <h3 class="nav-tab-wrapper"> -
trunk/src/wp-admin/network/site-users.php
r25939 r26518 185 185 186 186 <div class="wrap"> 187 <?php screen_icon('ms-admin'); ?>188 187 <h2 id="edit-site"><?php echo $title_site_url_linked ?></h2> 189 188 <h3 class="nav-tab-wrapper"> -
trunk/src/wp-admin/network/sites.php
r26298 r26518 232 232 233 233 <div class="wrap"> 234 <?php screen_icon( 'ms-admin' ); ?>235 234 <h2><?php _e( 'Sites' ) ?> 236 235 -
trunk/src/wp-admin/network/themes.php
r25616 r26518 91 91 92 92 echo '<div class="wrap">'; 93 screen_icon();94 93 echo '<h2>' . esc_html( $title ) . '</h2>'; 95 94 … … 138 137 <?php 139 138 $themes_to_delete = count( $themes ); 140 screen_icon();141 139 echo '<h2>' . _n( 'Delete Theme', 'Delete Themes', $themes_to_delete ) . '</h2>'; 142 140 ?> … … 228 226 229 227 <div class="wrap"> 230 <?php screen_icon('themes'); ?>231 228 <h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } 232 229 if ( $s ) -
trunk/src/wp-admin/network/upgrade.php
r25616 r26518 40 40 41 41 echo '<div class="wrap">'; 42 screen_icon('tools');43 42 echo '<h2>' . __( 'Upgrade Network' ) . '</h2>'; 44 43 -
trunk/src/wp-admin/network/user-new.php
r25631 r26518 70 70 71 71 <div class="wrap"> 72 <?php screen_icon(); ?>73 72 <h2 id="add-new-user"><?php _e('Add New User') ?></h2> 74 73 <?php -
trunk/src/wp-admin/network/users.php
r26499 r26518 21 21 if ( !is_array( $users ) ) 22 22 return false; 23 24 screen_icon();25 23 ?> 26 24 <h2><?php esc_html_e( 'Users' ); ?></h2> … … 276 274 ?> 277 275 <div class="wrap"> 278 <?php screen_icon(); ?>279 276 <h2><?php esc_html_e( 'Users' ); 280 277 if ( current_user_can( 'create_users') ) : ?> -
trunk/src/wp-admin/options-discussion.php
r25829 r26518 32 32 33 33 <div class="wrap"> 34 <?php screen_icon(); ?>35 34 <h2><?php echo esc_html( $title ); ?></h2> 36 35 -
trunk/src/wp-admin/options-general.php
r25880 r26518 85 85 86 86 <div class="wrap"> 87 <?php screen_icon(); ?>88 87 <h2><?php echo esc_html( $title ); ?></h2> 89 88 -
trunk/src/wp-admin/options-media.php
r25616 r26518 41 41 42 42 <div class="wrap"> 43 <?php screen_icon(); ?>44 43 <h2><?php echo esc_html( $title ); ?></h2> 45 44 -
trunk/src/wp-admin/options-permalink.php
r25616 r26518 171 171 172 172 <div class="wrap"> 173 <?php screen_icon(); ?>174 173 <h2><?php echo esc_html( $title ); ?></h2> 175 174 -
trunk/src/wp-admin/options-reading.php
r25880 r26518 77 77 78 78 <div class="wrap"> 79 <?php screen_icon(); ?>80 79 <h2><?php echo esc_html( $title ); ?></h2> 81 80 -
trunk/src/wp-admin/options-writing.php
r26081 r26518 63 63 64 64 <div class="wrap"> 65 <?php screen_icon(); ?>66 65 <h2><?php echo esc_html( $title ); ?></h2> 67 66 -
trunk/src/wp-admin/options.php
r25880 r26518 201 201 202 202 <div class="wrap"> 203 <?php screen_icon(); ?>204 203 <h2><?php esc_html_e('All Settings'); ?></h2> 205 204 <form name="form" action="options.php" method="post" id="all-options"> -
trunk/src/wp-admin/plugin-editor.php
r25616 r26518 168 168 <?php endif; ?> 169 169 <div class="wrap"> 170 <?php screen_icon(); ?>171 170 <h2><?php echo esc_html( $title ); ?></h2> 172 171 -
trunk/src/wp-admin/plugin-install.php
r25616 r26518 74 74 ?> 75 75 <div class="wrap"> 76 <?php screen_icon( 'plugins' ); ?>77 76 <h2><?php echo esc_html( $title ); ?></h2> 78 77 -
trunk/src/wp-admin/plugins.php
r26345 r26518 117 117 118 118 echo '<div class="wrap">'; 119 screen_icon();120 119 echo '<h2>' . esc_html( $title ) . '</h2>'; 121 120 … … 260 259 } 261 260 } 262 screen_icon();263 261 $plugins_to_delete = count( $plugin_info ); 264 262 echo '<h2>' . _n( 'Delete Plugin', 'Delete Plugins', $plugins_to_delete ) . '</h2>'; … … 409 407 410 408 <div class="wrap"> 411 <?php screen_icon(); ?>412 409 <h2><?php echo esc_html( $title ); 413 410 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?> -
trunk/src/wp-admin/revision.php
r25880 r26518 125 125 126 126 <div class="wrap"> 127 <?php screen_icon(); ?>128 127 <h2 class="long-header"><?php echo $h2; ?></h2> 129 128 </div> -
trunk/src/wp-admin/theme-editor.php
r25616 r26518 134 134 ?> 135 135 <div class="wrap"> 136 <?php screen_icon(); ?>137 136 <h2><?php echo esc_html( $title ); ?></h2> 138 137 -
trunk/src/wp-admin/theme-install.php
r26466 r26518 76 76 ?> 77 77 <div class="wrap"> 78 <?php79 screen_icon();80 ?>81 78 <h2><?php echo esc_html( $title ); ?></h2> 82 79 <?php -
trunk/src/wp-admin/tools.php
r25937 r26518 34 34 ?> 35 35 <div class="wrap"> 36 <?php screen_icon(); ?>37 36 <h2><?php echo esc_html( $title ); ?></h2> 38 37 -
trunk/src/wp-admin/update-core.php
r26283 r26518 377 377 ?> 378 378 <div class="wrap"> 379 <?php screen_icon('tools'); ?>380 379 <h2><?php _e('Update WordPress'); ?></h2> 381 380 <?php … … 491 490 ?> 492 491 <div class="wrap"> 493 <?php screen_icon('tools'); ?>494 492 <h2><?php _e('WordPress Updates'); ?></h2> 495 493 <?php … … 570 568 require_once(ABSPATH . 'wp-admin/admin-header.php'); 571 569 echo '<div class="wrap">'; 572 screen_icon('plugins');573 570 echo '<h2>' . esc_html__('Update Plugins') . '</h2>'; 574 571 echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>"; … … 599 596 require_once(ABSPATH . 'wp-admin/admin-header.php'); 600 597 echo '<div class="wrap">'; 601 screen_icon('themes');602 598 echo '<h2>' . esc_html__('Update Themes') . '</h2>'; 603 599 echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>"; -
trunk/src/wp-admin/upload.php
r25616 r26518 178 178 179 179 <div class="wrap"> 180 <?php screen_icon(); ?>181 180 <h2> 182 181 <?php -
trunk/src/wp-admin/user-edit.php
r26493 r26518 211 211 212 212 <div class="wrap" id="profile-page"> 213 <?php screen_icon(); ?>214 213 <h2> 215 214 <?php -
trunk/src/wp-admin/user-new.php
r26493 r26518 234 234 ?> 235 235 <div class="wrap"> 236 <?php screen_icon(); ?>237 236 <h2 id="add-new-user"> <?php 238 237 if ( current_user_can( 'create_users' ) ) { -
trunk/src/wp-admin/users.php
r25616 r26518 219 219 220 220 <div class="wrap"> 221 <?php screen_icon(); ?>222 221 <h2><?php _e('Delete Users'); ?></h2> 223 222 <?php if ( isset( $_REQUEST['error'] ) ) : ?> … … 324 323 325 324 <div class="wrap"> 326 <?php screen_icon(); ?>327 325 <h2><?php _e('Remove Users from Site'); ?></h2> 328 326 <p><?php _e('You have specified these users for removal:'); ?></p> … … 426 424 427 425 <div class="wrap"> 428 <?php screen_icon(); ?>429 426 <h2> 430 427 <?php -
trunk/src/wp-admin/widgets.php
r26505 r26518 230 230 require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 231 231 <div class="wrap"> 232 <?php screen_icon(); ?>233 232 <h2><?php echo esc_html( $title ); ?></h2> 234 233 <div class="editwidget"<?php echo $width; ?>> … … 311 310 312 311 <div class="wrap"> 313 <?php screen_icon(); ?>314 312 <h2><?php echo esc_html( $title ); ?></h2> 315 313
Note: See TracChangeset
for help on using the changeset viewer.