Edit File by line
/home/barbar84/www/wp-conte.../plugins/wp-smush.../app/pages
File: class-upgrade.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Smush upgrade page class: Upgrade extends Abstract_Page.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 3.2.3
[4] Fix | Delete
* @package Smush\App\Pages
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
namespace Smush\App\Pages;
[8] Fix | Delete
[9] Fix | Delete
use Smush\App\Abstract_Page;
[10] Fix | Delete
[11] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[12] Fix | Delete
die;
[13] Fix | Delete
}
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* Class Upgrade
[17] Fix | Delete
*/
[18] Fix | Delete
class Upgrade extends Abstract_Page {
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Render the page.
[22] Fix | Delete
*/
[23] Fix | Delete
public function render() {
[24] Fix | Delete
?>
[25] Fix | Delete
<div class="<?php echo $this->settings->get( 'accessible_colors' ) ? 'sui-wrap sui-color-accessible' : 'sui-wrap'; ?>">
[26] Fix | Delete
<?php $this->render_inner_content(); ?>
[27] Fix | Delete
</div>
[28] Fix | Delete
<?php
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
/**
[32] Fix | Delete
* On load actions.
[33] Fix | Delete
*/
[34] Fix | Delete
public function on_load() {
[35] Fix | Delete
add_action(
[36] Fix | Delete
'admin_enqueue_scripts',
[37] Fix | Delete
function() {
[38] Fix | Delete
wp_enqueue_script( 'smush-sui', WP_SMUSH_URL . 'app/assets/js/smush-sui.min.js', array( 'jquery' ), WP_SHARED_UI_VERSION, true );
[39] Fix | Delete
wp_enqueue_script( 'smush-wistia', '//fast.wistia.com/assets/external/E-v1.js', array(), WP_SMUSH_VERSION, true );
[40] Fix | Delete
wp_enqueue_style( 'smush-admin', WP_SMUSH_URL . 'app/assets/css/smush-admin.min.css', array(), WP_SMUSH_VERSION );
[41] Fix | Delete
}
[42] Fix | Delete
);
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* Common hooks for all screens.
[47] Fix | Delete
*/
[48] Fix | Delete
public function add_action_hooks() {
[49] Fix | Delete
add_filter( 'admin_body_class', array( $this, 'smush_body_classes' ) );
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function