[ 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
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 Blocks
SET
[ DEL ]
📁 Contracts
SET
[ DEL ]
📁 Database
SET
[ DEL ]
📁 Integrations
SET
[ DEL ]
📁 Libraries
SET
[ DEL ]
📁 Models
SET
[ DEL ]
📁 Seeds
SET
[ DEL ]
📁 Services
SET
[ DEL ]
📁 Support
SET
[ DEL ]
📁 config
SET
[ DEL ]
📁 lib
SET
[ DEL ]
📄 Activator.php
511 B
SET
[ EDIT ]
|
[ DEL ]
📄 Attachment.php
7,513 B
SET
[ EDIT ]
|
[ DEL ]
📄 Controller.php
850 B
SET
[ EDIT ]
|
[ DEL ]
📄 Core.php
1,179 B
SET
[ EDIT ]
|
[ DEL ]
📄 Deactivator.php
3,065 B
SET
[ EDIT ]
|
[ DEL ]
📄 Factory.php
2,960 B
SET
[ EDIT ]
|
[ DEL ]
📄 Files.php
6,912 B
SET
[ EDIT ]
|
[ DEL ]
📄 Playlist.php
1,935 B
SET
[ EDIT ]
|
[ DEL ]
📄 Plugin.php
2,415 B
SET
[ EDIT ]
|
[ DEL ]
📄 Requirements.php
2,030 B
SET
[ EDIT ]
|
[ DEL ]
📄 support.php
155 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Requirements.php
<?php namespace PrestoPlayer; use PrestoPlayer\Mundschenk\WP_Requirements; class Requirements extends WP_Requirements { const REQUIREMENTS = array( 'php' => '7.3', 'multibyte' => false, 'utf-8' => false, 'wp' => '5.6', ); /** * Creates a new requirements instance. * * @since 2.1.0 Parameter $plugin_file replaced with AVATAR_PRIVACY_PLUGIN_FILE constant. */ public function __construct() { parent::__construct( 'Presto Player', PRESTO_PLAYER_PLUGIN_FILE, 'presto-player', self::REQUIREMENTS ); } /** * Retrieves an array of requirement specifications. * * @return array { * An array of requirements checks. * * @type string $enable_key An index in the $install_requirements array to switch the check on and off. * @type callable $check A function returning true if the check was successful, false otherwise. * @type callable $notice A function displaying an appropriate error notice. * } */ protected function get_requirements() { $requirements = parent::get_requirements(); $requirements[] = array( 'enable_key' => 'wp', 'check' => array( $this, 'check_wp_support' ), 'notice' => array( $this, 'admin_notices_wp_incompatible' ), ); return $requirements; } /** * Checks for availability of the GD extension. * * @return bool */ protected function check_wp_support() { global $wp_version; return version_compare( $wp_version, '5.6', '>=' ); } /** * Prints 'WordPress Update' admin notice * * @return void */ public function admin_notices_wp_incompatible() { $this->display_error_notice( /* translators: 1: plugin name 2: WordPress update documentation URL */ \__( 'The activated plugin %1$s requires WordPress 5.6 or higher. Please update WordPress.', 'presto-player' ), '<strong>Presto Player</strong>', /* translators: URL with WordPress installation instructions */ \__( 'https://wordpress.org/support/article/updating-wordpress/', 'presto-player' ) ); } }