From c09bad5821f5391aece4f772a06ff140c78ae121 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 10 Nov 2026 16:37:12 -0600 Subject: [PATCH] WordPress.tv: Remove the Flash-era VideoPress footer script The theme printed an inline script on every page that set the wmode parameter on the VideoPress Flash player through jQuery.VideoPress. The Flash player is long gone, and jQuery isn't loaded on WordPress.tv anymore, so the script only threw "jQuery is not defined" in the console on every page view. Fixes #7143. Co-Authored-By: Claude Opus 5.5 --- .../public_html/wp-content/themes/wptv2/functions.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php b/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php index d466030ebc..d0ca4b3dd2 100644 --- a/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php +++ b/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php @@ -32,7 +32,6 @@ function setup() { add_action( 'publish_post', array( $this, 'publish_post' ), 10, 1 ); add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) ); add_action( 'save_post', array( $this, 'save_meta_box_fields' ), 10, 2); - add_action( 'wp_footer', array( $this, 'videopress_flash_params' ) ); add_action( 'transition_post_status', array( $this, 'transition_post_status' ), 10, 2 ); add_filter( 'pre_option_blog_upload_space', array( $this, 'blog_upload_space' ) ); @@ -451,14 +450,6 @@ function save_meta_box_fields( $post_id, $post ) { } } - - /** - * Change VideoPress Params, runs during wp_footer - */ - function videopress_flash_params() { - echo ''; - } - /** * List Comments Callback *