Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119
Built from https://develop.svn.wordpress.org/trunk@26518 git-svn-id: http://core.svn.wordpress.org/trunk@26411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -65,7 +65,6 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php echo esc_html( $title ); ?></h2>
|
||||
|
||||
<div id="dashboard-widgets-wrap">
|
||||
|
||||
@@ -84,7 +84,6 @@ if ( isset( $_GET['updated'] ) ) {
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('options-general'); ?>
|
||||
<h2><?php echo esc_html( $title ); ?></h2>
|
||||
<form method="post" action="settings.php">
|
||||
<?php wp_nonce_field( 'siteoptions' ); ?>
|
||||
|
||||
@@ -96,7 +96,6 @@ require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('ms-admin'); ?>
|
||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
||||
<h3 class="nav-tab-wrapper">
|
||||
<?php
|
||||
|
||||
@@ -111,7 +111,6 @@ require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('ms-admin'); ?>
|
||||
<h2 id="add-new-site"><?php _e('Add New Site') ?></h2>
|
||||
<?php
|
||||
if ( ! empty( $messages ) ) {
|
||||
|
||||
@@ -87,7 +87,6 @@ require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('ms-admin'); ?>
|
||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
||||
<h3 class="nav-tab-wrapper">
|
||||
<?php
|
||||
|
||||
@@ -135,7 +135,6 @@ $submenu_file = 'sites.php';
|
||||
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('ms-admin'); ?>
|
||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
||||
<h3 class="nav-tab-wrapper">
|
||||
<?php
|
||||
|
||||
@@ -184,7 +184,6 @@ var current_site_id = <?php echo $id; ?>;
|
||||
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('ms-admin'); ?>
|
||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
||||
<h3 class="nav-tab-wrapper">
|
||||
<?php
|
||||
|
||||
@@ -231,7 +231,6 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon( 'ms-admin' ); ?>
|
||||
<h2><?php _e( 'Sites' ) ?>
|
||||
|
||||
<?php if ( current_user_can( 'create_sites') ) : ?>
|
||||
|
||||
@@ -90,7 +90,6 @@ if ( $action ) {
|
||||
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||
|
||||
echo '<div class="wrap">';
|
||||
screen_icon();
|
||||
echo '<h2>' . esc_html( $title ) . '</h2>';
|
||||
|
||||
$url = self_admin_url('update.php?action=update-selected-themes&themes=' . urlencode( join(',', $themes) ));
|
||||
@@ -137,7 +136,6 @@ if ( $action ) {
|
||||
<div class="wrap">
|
||||
<?php
|
||||
$themes_to_delete = count( $themes );
|
||||
screen_icon();
|
||||
echo '<h2>' . _n( 'Delete Theme', 'Delete Themes', $themes_to_delete ) . '</h2>';
|
||||
?>
|
||||
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php echo _n( 'This theme may be active on other sites in the network.', 'These themes may be active on other sites in the network.', $themes_to_delete ); ?></p></div>
|
||||
@@ -227,7 +225,6 @@ require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('themes'); ?>
|
||||
<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 }
|
||||
if ( $s )
|
||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?>
|
||||
|
||||
@@ -39,7 +39,6 @@ if ( ! current_user_can( 'manage_network' ) )
|
||||
wp_die( __( 'You do not have permission to access this page.' ) );
|
||||
|
||||
echo '<div class="wrap">';
|
||||
screen_icon('tools');
|
||||
echo '<h2>' . __( 'Upgrade Network' ) . '</h2>';
|
||||
|
||||
$action = isset($_GET['action']) ? $_GET['action'] : 'show';
|
||||
|
||||
@@ -69,7 +69,6 @@ $parent_file = 'users.php';
|
||||
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<h2 id="add-new-user"><?php _e('Add New User') ?></h2>
|
||||
<?php
|
||||
if ( ! empty( $messages ) ) {
|
||||
|
||||
@@ -20,8 +20,6 @@ function confirm_delete_users( $users ) {
|
||||
$current_user = wp_get_current_user();
|
||||
if ( !is_array( $users ) )
|
||||
return false;
|
||||
|
||||
screen_icon();
|
||||
?>
|
||||
<h2><?php esc_html_e( 'Users' ); ?></h2>
|
||||
<p><?php _e( 'Transfer or delete posts before deleting users.' ); ?></p>
|
||||
@@ -275,7 +273,6 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
||||
}
|
||||
?>
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php esc_html_e( 'Users' );
|
||||
if ( current_user_can( 'create_users') ) : ?>
|
||||
<a href="<?php echo network_admin_url('user-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php
|
||||
|
||||
Reference in New Issue
Block a user