diff --git a/admin/index.php b/admin/index.php index 24dc103..8142269 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1 +1 @@ -capability = apply_filters( 'retranscode_media_cap', 'manage_options' ); + add_action( 'admin_menu', array( $this, 'add_admin_menu' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueues' ) ); add_action( 'wp_ajax_retranscodemedia', array( $this, 'ajax_process_retranscode_request' ) ); @@ -78,8 +88,6 @@ public function __construct() { add_filter( 'amp_story_allowed_video_types', array( $this, 'add_amp_video_extensions' ) ); // Extend allowed video mime type extensions for AMP Story Background. add_filter( 'render_block', array( $this, 'update_amp_story_video_url' ), 10, 2 ); // Filter block content and replace video URLs. - // Allow people to change what capability is required to use this feature. - $this->capability = apply_filters( 'retranscode_media_cap', 'manage_options' ); // Load Rest Endpoints. $this->load_rest_endpoints(); diff --git a/admin/rt-transcoder-progressbar.php b/admin/rt-transcoder-progressbar.php index 009292d..6113153 100644 --- a/admin/rt-transcoder-progressbar.php +++ b/admin/rt-transcoder-progressbar.php @@ -27,7 +27,6 @@ class RT_Progress { * @return void */ public function __construct() { - } /** diff --git a/admin/rt-transcoder-rest-routes.php b/admin/rt-transcoder-rest-routes.php index c3576d2..85df8a6 100644 --- a/admin/rt-transcoder-rest-routes.php +++ b/admin/rt-transcoder-rest-routes.php @@ -151,5 +151,4 @@ private function get_media_data_by_id( $media_id ) { 'transcodedMedia' => $final_file_url, ); } - } diff --git a/inc/classes/class-filesystem.php b/inc/classes/class-filesystem.php index 31275a0..9291472 100644 --- a/inc/classes/class-filesystem.php +++ b/inc/classes/class-filesystem.php @@ -22,7 +22,6 @@ class FileSystem { protected function __construct() { $this->init_file_system(); - } /** @@ -76,7 +75,5 @@ public static function delete_file( $file ) { global $wp_filesystem; return $wp_filesystem->delete( $file ); - } - } diff --git a/inc/helpers/autoloader.php b/inc/helpers/autoloader.php index b9e353e..ad3e638 100644 --- a/inc/helpers/autoloader.php +++ b/inc/helpers/autoloader.php @@ -79,7 +79,6 @@ function autoloader( $resource = '' ) { // We already making sure that file is exists and valid. require_once $resource_path; // phpcs:ignore WordPressVIPMinimum.Files.IncludingFile.UsingVariable } - } spl_autoload_register( __NAMESPACE__ . '\autoloader' ); diff --git a/inc/traits/trait-singleton.php b/inc/traits/trait-singleton.php index c4d6f8b..e39d1d2 100644 --- a/inc/traits/trait-singleton.php +++ b/inc/traits/trait-singleton.php @@ -83,7 +83,5 @@ final public static function get_instance() { } return $instance[ $called_class ]; - } - } // End trait