https://t.me/ARX49
Server : LiteSpeed
System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : apotdzgr ( 7060)
PHP Version : 8.0.30
Disable Function : NONE
Directory :  /home/apotdzgr/www/wp-content/plugins/loco-translate/src/admin/list/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/apotdzgr/www/wp-content/plugins/loco-translate/src/admin/list/PluginsController.php
<?php
/**
 * List all bundles of type "plugin"
 * Route: loco-plugin
 */
class Loco_admin_list_PluginsController extends Loco_admin_list_BaseController {

    
    public function render(){

        $this->set( 'type', 'plugin' );
        $this->set( 'title', __( 'Translate plugins', 'loco-translate' ) );
        
        foreach( Loco_package_Plugin::get_plugins() as $handle => $data ){
            try {
                $bundle = Loco_package_Plugin::create( $handle );
                $this->addBundle($bundle);
            }
            // @codeCoverageIgnoreStart
            catch( Exception $e ){
                $bundle = new Loco_package_Plugin( $handle, $handle );
                $this->addBundle( $bundle );
            }
            // @codeCoverageIgnoreEnd
        }
        
        return parent::render();
    }

    
}

https://t.me/ARX49 - 2025