• The plugin expects ‘plugins.php’ and ‘options-general.php’ to be in a $_GET?[‘page’]?variable.

    Remove these lines from constuctor it is no longer needed.

    // pages where this plugin needs translation
     $local_pages = array ('plugins.php', 'options-general.php' );
    // check if translation needed on current page
    if (in_array ( $pagenow, $local_pages ) || in_array ( $_GET ['page'], $local_pages )) {
         $this->handle_load_domain ();
    }

    ? ? ? ? ?

  • The topic ‘Remove the old code on construct’ is closed to new replies.