: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @package Smush\App\Pages
namespace Smush\App\Pages;
use Smush\App\Abstract_Summary_Page;
use Smush\App\Interface_Page;
if ( ! defined( 'WPINC' ) ) {
class Lazy extends Abstract_Summary_Page implements Interface_Page {
public function register_meta_boxes() {
parent::register_meta_boxes();
if ( ! $this->settings->get( 'lazy_load' ) ) {
__( 'Lazy Load', 'wp-smushit' ),
'box_class' => 'sui-box sui-message sui-no-padding',
__( 'Lazy Load', 'wp-smushit' ),
array( $this, 'lazy_load_meta_box' ),
array( $this, 'common_meta_box_footer' )
* Common footer meta box.
public function common_meta_box_footer() {
$this->view( 'meta-box-footer', array(), 'common' );
public function lazy_load_meta_box() {
'conflicts' => get_transient( 'wp-smush-conflict_check' ),
'settings' => $this->settings->get_setting( 'wp-smush-lazy_load' ),
'cpts' => get_post_types( // custom post types.