Server :
Apache
System :
Linux webd003.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User :
atwiofrxug (73666)
PHP Version :
8.4.10
Disable Functions :
_dyuweyrj4,_dyuweyrj4r,dl
Current Directory :
/home/atwiofrxug/mylittletelaviv/wp-content/plugins/wordpress-seo/admin/
Directory Status:
Writeable | Document Root:
Writeable
Upload File
Viewing: /home/atwiofrxug/mylittletelaviv/wp-content/plugins/wordpress-seo/admin/courses-overview.php
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin
*/
/**
* This class handles enqueuing the required JS files for the courses overview.
*/
class WPSEO_Courses_Overview implements WPSEO_WordPress_Integration {
/**
* Registers all hooks to WordPress.
*
* @return void
*/
public function register_hooks() {
global $pagenow;
$current_page = filter_input( INPUT_GET, 'page' );
if ( $pagenow === 'admin.php' && $current_page === 'wpseo_courses' ) {
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
}
}
/**
* Returns the Yoast SEO version the user currently is using.
*
* @return string The version: Free or Premium.
*/
private function get_version() {
if ( WPSEO_Utils::is_yoast_seo_premium() ) {
return 'premium';
}
return 'free';
}
/**
* Enqueue the relevant script.
*
* @return void
*/
public function enqueue_scripts() {
wp_enqueue_script( WPSEO_Admin_Asset_Manager::PREFIX . 'courses-overview' );
$localizations = array(
'version' => $this->get_version(),
'isRtl' => is_rtl(),
);
wp_localize_script(
WPSEO_Admin_Asset_Manager::PREFIX . 'courses-overview',
'wpseoCoursesOverviewL10n',
$localizations
);
}
}
Cyb3r Drag0nz Team • Google Edition