From e5ec44416a324a614143476829143317cfb595e4 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 10 May 2011 19:18:16 +0000 Subject: [PATCH] Remove favorite_actions() from h2s. Restore Add New buttons. see #17324 git-svn-id: http://svn.automattic.com/wordpress/trunk@17849 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit.php | 4 +--- wp-admin/index.php | 5 +---- wp-admin/link-manager.php | 4 +--- wp-admin/network/sites.php | 14 +++++++------- wp-admin/network/themes.php | 18 +++++++----------- wp-admin/network/users.php | 15 +++++++-------- wp-admin/plugins.php | 9 ++++----- wp-admin/themes.php | 15 +++++++-------- wp-admin/upload.php | 4 +--- wp-admin/users.php | 7 ++++++- 10 files changed, 42 insertions(+), 53 deletions(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 7c836392b8..d485d37bd0 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -190,9 +190,7 @@ require_once('./admin-header.php'); ?>
-

labels->name ); -favorite_actions( $current_screen ); +

labels->name ); ?> labels->add_new); ?> ' . __('Search results for “%s”') . '', get_search_query() ); ?>

diff --git a/wp-admin/index.php b/wp-admin/index.php index 44cdcd27eb..55399174f7 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -56,10 +56,7 @@ $today = current_time('mysql', 1);
-

-

+

diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 801a1d0dce..5489d7dd9f 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -59,9 +59,7 @@ if ( ! current_user_can('manage_links') )
-

' . __('Search results for “%s”') . '', esc_html( stripslashes($_REQUEST['s']) ) ); ?>

diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index 18cf5f4f46..8a77d63926 100644 --- a/wp-admin/network/sites.php +++ b/wp-admin/network/sites.php @@ -99,13 +99,13 @@ require_once( '../admin-header.php' );
-

+ + + + + +' . __( 'Search results for “%s”' ) . '', esc_html( $s ) ); } ?>

diff --git a/wp-admin/network/themes.php b/wp-admin/network/themes.php index d8d928b96b..b802f74dbe 100644 --- a/wp-admin/network/themes.php +++ b/wp-admin/network/themes.php @@ -34,7 +34,7 @@ $_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] $referer = remove_query_arg( $temp_args, wp_get_referer() ); if ( $action ) { - $allowed_themes = get_site_option( 'allowedthemes' ); + $allowed_themes = get_site_option( 'allowedthemes' ); switch ( $action ) { case 'enable': check_admin_referer('enable-theme_' . $_GET['theme']); @@ -100,11 +100,11 @@ if ( $action ) { if ( $data['Name'] == $main_theme ) { unset( $themes[$key] ); } else { - $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) ); + $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) ); $theme_info[ $theme ] = $data; } } - + if ( empty( $themes ) ) { wp_redirect( add_query_arg( 'error', 'main', $referer ) ); exit; @@ -162,7 +162,7 @@ if ( $action ) { foreach ( $themes as $theme ) $delete_result = delete_theme( $theme, esc_url( add_query_arg( array('verify-delete' => 1), $_SERVER['REQUEST_URI'] ) ) ); - $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; + $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) ); exit; break; @@ -199,13 +199,9 @@ require_once(ABSPATH . 'wp-admin/admin-header.php');
-

' . __('Search results for “%s”') . '', esc_html( $s ) ); ?> +

' . __('Search results for “%s”') . '', esc_html( $s ) ); ?>

-

' . __( 'Search results for “%s”' ) . '', esc_html( $usersearch ) ); - } +

+ ' . __( 'Search results for “%s”' ) . '', esc_html( $usersearch ) ); ?>

diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index f05eacd05d..8f7ec88a2d 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -385,11 +385,10 @@ if ( !empty($invalid) )
-

+ +' . __('Search results for “%s”') . '', esc_html( $s ) ); ?>

diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 8ec92f7731..171a0b22ac 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -71,16 +71,15 @@ require_once('./admin-header.php');
-

- +

+

diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 914b398769..d252bad9c6 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -160,9 +160,7 @@ require_once('./admin-header.php');
-

' . __('Search results for “%s”') . '', get_search_query() ); ?>

diff --git a/wp-admin/users.php b/wp-admin/users.php index f0dbd3f63d..0020261535 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -359,7 +359,12 @@ if ( ! empty($messages) ) {

+ + + +' . __('Search results for “%s”') . '', esc_html( $usersearch ) ); ?>