mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
ob_get_contents() followed by ob_end_clean() can be replaced by ob_get_clean().
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32965 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -771,8 +771,8 @@ function delete_plugins( $plugins, $deprecated = '' ) {
|
||||
ob_start();
|
||||
$url = wp_nonce_url('plugins.php?action=delete-selected&verify-delete=1&' . implode('&', $checked), 'bulk-plugins');
|
||||
if ( false === ($credentials = request_filesystem_credentials($url)) ) {
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$data = ob_get_clean();
|
||||
|
||||
if ( ! empty($data) ){
|
||||
include_once( ABSPATH . 'wp-admin/admin-header.php');
|
||||
echo $data;
|
||||
@@ -784,8 +784,8 @@ function delete_plugins( $plugins, $deprecated = '' ) {
|
||||
|
||||
if ( ! WP_Filesystem($credentials) ) {
|
||||
request_filesystem_credentials($url, '', true); //Failed to connect, Error and request again
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$data = ob_get_clean();
|
||||
|
||||
if ( ! empty($data) ){
|
||||
include_once( ABSPATH . 'wp-admin/admin-header.php');
|
||||
echo $data;
|
||||
|
||||
Reference in New Issue
Block a user