Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-admin/includes
File: class-bulk-plugin-upgrader-skin.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Upgrader API: Bulk_Plugin_Upgrader_Skin class
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Upgrader
[5] Fix | Delete
* @since 4.6.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Bulk Plugin Upgrader Skin for WordPress Plugin Upgrades.
[10] Fix | Delete
*
[11] Fix | Delete
* @since 3.0.0
[12] Fix | Delete
* @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
[13] Fix | Delete
*
[14] Fix | Delete
* @see Bulk_Upgrader_Skin
[15] Fix | Delete
*/
[16] Fix | Delete
class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* Plugin info.
[20] Fix | Delete
*
[21] Fix | Delete
* The Plugin_Upgrader::bulk_upgrade() method will fill this in
[22] Fix | Delete
* with info retrieved from the get_plugin_data() function.
[23] Fix | Delete
*
[24] Fix | Delete
* @since 3.0.0
[25] Fix | Delete
* @var array Plugin data. Values will be empty if not supplied by the plugin.
[26] Fix | Delete
*/
[27] Fix | Delete
public $plugin_info = array();
[28] Fix | Delete
[29] Fix | Delete
/**
[30] Fix | Delete
* Sets up the strings used in the update process.
[31] Fix | Delete
*
[32] Fix | Delete
* @since 3.0.0
[33] Fix | Delete
*/
[34] Fix | Delete
public function add_strings() {
[35] Fix | Delete
parent::add_strings();
[36] Fix | Delete
/* translators: 1: Plugin name, 2: Number of the plugin, 3: Total number of plugins being updated. */
[37] Fix | Delete
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' );
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
/**
[41] Fix | Delete
* Performs an action before a bulk plugin update.
[42] Fix | Delete
*
[43] Fix | Delete
* @since 3.0.0
[44] Fix | Delete
*
[45] Fix | Delete
* @param string $title
[46] Fix | Delete
*/
[47] Fix | Delete
public function before( $title = '' ) {
[48] Fix | Delete
parent::before( $this->plugin_info['Title'] );
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
/**
[52] Fix | Delete
* Performs an action following a bulk plugin update.
[53] Fix | Delete
*
[54] Fix | Delete
* @since 3.0.0
[55] Fix | Delete
*
[56] Fix | Delete
* @param string $title
[57] Fix | Delete
*/
[58] Fix | Delete
public function after( $title = '' ) {
[59] Fix | Delete
parent::after( $this->plugin_info['Title'] );
[60] Fix | Delete
$this->decrement_update_count( 'plugin' );
[61] Fix | Delete
}
[62] Fix | Delete
[63] Fix | Delete
/**
[64] Fix | Delete
* Displays the footer following the bulk update process.
[65] Fix | Delete
*
[66] Fix | Delete
* @since 3.0.0
[67] Fix | Delete
*/
[68] Fix | Delete
public function bulk_footer() {
[69] Fix | Delete
parent::bulk_footer();
[70] Fix | Delete
[71] Fix | Delete
$update_actions = array(
[72] Fix | Delete
'plugins_page' => sprintf(
[73] Fix | Delete
'<a href="%s" target="_parent">%s</a>',
[74] Fix | Delete
self_admin_url( 'plugins.php' ),
[75] Fix | Delete
__( 'Go to Plugins page' )
[76] Fix | Delete
),
[77] Fix | Delete
'updates_page' => sprintf(
[78] Fix | Delete
'<a href="%s" target="_parent">%s</a>',
[79] Fix | Delete
self_admin_url( 'update-core.php' ),
[80] Fix | Delete
__( 'Go to WordPress Updates page' )
[81] Fix | Delete
),
[82] Fix | Delete
);
[83] Fix | Delete
[84] Fix | Delete
if ( ! current_user_can( 'activate_plugins' ) ) {
[85] Fix | Delete
unset( $update_actions['plugins_page'] );
[86] Fix | Delete
}
[87] Fix | Delete
[88] Fix | Delete
/**
[89] Fix | Delete
* Filters the list of action links available following bulk plugin updates.
[90] Fix | Delete
*
[91] Fix | Delete
* @since 3.0.0
[92] Fix | Delete
*
[93] Fix | Delete
* @param string[] $update_actions Array of plugin action links.
[94] Fix | Delete
* @param array $plugin_info Array of information for the last-updated plugin.
[95] Fix | Delete
*/
[96] Fix | Delete
$update_actions = apply_filters( 'update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info );
[97] Fix | Delete
[98] Fix | Delete
if ( ! empty( $update_actions ) ) {
[99] Fix | Delete
$this->feedback( implode( ' | ', (array) $update_actions ) );
[100] Fix | Delete
}
[101] Fix | Delete
}
[102] Fix | Delete
}
[103] Fix | Delete
[104] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function