[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
inc
/
Services
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 API
SET
[ DEL ]
📁 Blocks
SET
[ DEL ]
📁 comment-editor
SET
[ DEL ]
📄 AdminNotice.php
1,170 B
SET
[ EDIT ]
|
[ DEL ]
📄 AdminNotices.php
6,633 B
SET
[ EDIT ]
|
[ DEL ]
📄 AjaxActions.php
971 B
SET
[ EDIT ]
|
[ DEL ]
📄 Blocks.php
1,134 B
SET
[ EDIT ]
|
[ DEL ]
📄 Compatibility.php
3,181 B
SET
[ EDIT ]
|
[ DEL ]
📄 Menu.php
5,867 B
SET
[ EDIT ]
|
[ DEL ]
📄 Migrations.php
187 B
SET
[ EDIT ]
|
[ DEL ]
📄 NpsSurvey.php
2,269 B
SET
[ EDIT ]
|
[ DEL ]
📄 Player.php
1,958 B
SET
[ EDIT ]
|
[ DEL ]
📄 PreloadService.php
3,131 B
SET
[ EDIT ]
|
[ DEL ]
📄 ProCompatibility.php
1,566 B
SET
[ EDIT ]
|
[ DEL ]
📄 ReusableVideos.php
3,803 B
SET
[ EDIT ]
|
[ DEL ]
📄 RewriteRulesManager.php
2,085 B
SET
[ EDIT ]
|
[ DEL ]
📄 Scripts.php
15,853 B
SET
[ EDIT ]
|
[ DEL ]
📄 Settings.php
8,791 B
SET
[ EDIT ]
|
[ DEL ]
📄 Shortcodes.php
17,922 B
SET
[ EDIT ]
|
[ DEL ]
📄 Streamer.php
3,046 B
SET
[ EDIT ]
|
[ DEL ]
📄 Translation.php
6,157 B
SET
[ EDIT ]
|
[ DEL ]
📄 Usage.php
7,255 B
SET
[ EDIT ]
|
[ DEL ]
📄 VideoPostType.php
22,048 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Compatibility.php
<?php namespace PrestoPlayer\Services; class Compatibility { public function register() { // wp rocket compat add_action( 'rocket_exclude_js', array( $this, 'excludeComponentsFile' ) ); // siteground optimize add_action( 'sgo_js_minify_exclude', array( $this, 'excludeHandle' ) ); // godaddy's shitty feedback modal add_action( 'admin_enqueue_scripts', array( $this, 'goDaddyModal' ), 99 ); // allow our player html add_filter( 'wp_kses_allowed_html', array( $this, 'allowHtml' ), 11 ); // allow our css variables in safe css. add_filter( 'safe_style_css', array( $this, 'safeCSS' ) ); } /** * Allows our css variables to be outputted wp_kses_allowed_html * * @param array $styles Array of allowed styles. * @return array */ public function safeCSS( $styles ) { $player_styles = array( '--plyr-color-main', '--plyr-captions-background', '--presto-player-border-radius', '--presto-player-logo-width', '--presto-player-email-border-radius', '--presto-player-button-border-radius', '--presto-player-button-color', '--presto-player-button-text', '--presto-player-cta-background-opacity', '--plyr-audio-controls-background', '--plyr-audio-control-color', '--plyr-range-thumb-background', '--plyr-range-fill-background', '--presto-popup-media-width', '--presto-popup-media-width-mobile', '--presto-popup-background-color', ); return array_merge( $player_styles, $styles ); } /** * Lets us use our player tag in content. * * @param array $tags Allowed tags. * @return array */ public function allowHtml( $tags ) { $tags['presto-player'] = array( 'direction' => true, 'css' => true, 'skin' => true, 'icon-url' => true, 'id' => true, 'src' => true, 'class' => true, 'preload' => true, 'poster' => true, 'playsinline' => true, 'autoplay' => true, 'preset' => true, 'branding' => true, 'chapters' => true, 'overlays' => true, 'tracks' => true, 'block-attributes' => true, 'analytics' => true, 'automations' => true, 'provider' => true, 'media-title' => true, 'youtube' => true, 'provider-video-id' => true, 'video-id' => true, 'lazy-load-youtube' => true, ); return $tags; } public function goDaddyModal() { global $post_type; if ( 'pp_video_block' == $post_type ) { wp_dequeue_script( 'nextgen-feedback-modal' ); } } /** * Exclude module by file * * @param array $excluded_js * @return array */ public function excludeComponentsFile( $excluded_js ) { $excluded_js[] = str_replace( home_url(), '', PRESTO_PLAYER_PLUGIN_URL . 'dist/components/web-components/web-components.esm.js' ); return $excluded_js; } /** * Exclude module by handle * * @param array $handles * @return array */ public function excludeHandle( $handles ) { $handles[] = 'presto-components'; return $handles; } }