• In the class-email-subscribers-admin.php file, you have 2 functions that load styles and scripts (enqueue_styles and enqueue_scripts).
    They have a check to see if the current page is in the array:

    
    $enqueue_on_screens = array(
    	'toplevel_page_es_dashboard',
    	'email-subscribers_page_es_subscribers',
    	'email-subscribers_page_es_lists',
    	'email-subscribers_page_es_forms',
    	'email-subscribers_page_es_campaigns',
    	'email-subscribers_page_es_newsletters',
    	'email-subscribers_page_es_notifications',
    	'edit-es_template',
    	'email-subscribers_page_es_reports',
    	'email-subscribers_page_es_tools',
    	'email-subscribers_page_es_settings',
    	'email-subscribers_page_es_general_information',
    	'email-subscribers_page_es_pricing',
    	'es_template',
    );
    //all admin notice
    if ( ! in_array( $screen_id, $enqueue_on_screens, true ) ) {
    	return;
    }
    

    The problem is that if I use non-english wordpress, then the pages’ ids are also non-english (for example, I have id of the settings page when using the Russian language that equal “%d0%bf%d0%be%d0%b4%d0%bf%d0%b8%d1%81%d1%87%d0%b8%d0%ba%d0%b8_page_es_settings”), and return is triggered, and styles and scripts are not loaded.

    Thus, when using non-english language, the pages in the admin panel are displayed incorrectly.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Problem with localized WordPress’ is closed to new replies.