HEX
Server: LiteSpeed
System: Linux cp4.porkbun.com 5.14.0-611.20.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 14 06:35:04 EST 2026 x86_64
User: vxblllubpkafjsjw (1110)
PHP: 8.4.19
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/loco-translate/src/admin/RedirectController.php
<?php
/**
 * 
 */
abstract class Loco_admin_RedirectController extends Loco_mvc_AdminController {


    /**
     * Get full URL for redirecting to.
     * @var string 
     */
    abstract public function getLocation();
    
    
    /**
     * {@inheritdoc}
     */
    public function init(){
        $location = $this->getLocation();
        if( $location && wp_redirect($location) ){
            // @codeCoverageIgnoreStart
            exit;
        }
    }



    /**
     * @internal
     */
    public function render(){
        return 'Failed to redirect';
    }
    
}