clean_data( $clean, 'rocket_performance_hints_clear_message' ); } /** * Clean performance hints data for current url. * * @return void */ public function clean_url_performance_hints(): void { if ( ! current_user_can( 'rocket_manage_options' ) ) { return; } check_admin_referer( 'rocket_clean_performance_hints_url' ); /** * Fires when cleaning a single URL for the performance hints data * * @since 3.17 */ do_action( 'rocket_performance_hints_clean_url' ); wp_safe_redirect( esc_url_raw( wp_get_referer() ) ); rocket_get_constant( 'WP_ROCKET_IS_TESTING', false ) ? wp_die() : exit; } }