' . __METHOD__ . '()' ); check_ajax_referer( $this->identifier, 'nonce' ); if ( empty( $_POST['ewwwio_test_verify'] ) ) { return; } $item = sanitize_key( $_POST['ewwwio_test_verify'] ); ewwwio_debug_message( "testing async handling, received $item" ); if ( ewww_image_optimizer_detect_wpsf_location_lock() ) { ewwwio_debug_message( 'detected location lock, not enabling background opt' ); return; } if ( '949c34123cf2a4e4ce2f985135830df4a1b2adc24905f53d2fd3f5df5b162932' !== $item ) { ewwwio_debug_message( 'wrong item received, not enabling background opt' ); return; } ewwwio_debug_message( 'setting background option to true' ); $success = ewww_image_optimizer_set_option( 'ewww_image_optimizer_background_optimization', true ); if ( $success ) { ewwwio_debug_message( 'hurrah, async enabled!' ); } } }