Server : LiteSpeed
System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User : gazetufm ( 1431)
PHP Version : 8.1.35
Disable Function : NONE
Directory :  /home2/gazetufm/leonora.al/wp-content/plugins/kirki/libraries/framework/Http/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: RedirectResponse.php

Path: //home2/gazetufm/leonora.al/wp-content/plugins/kirki/libraries/framework/Http/RedirectResponse.php

Size: 1.51 KB

Permissions: 0644

<?php

/**
 * Redirect response for site route controllers.
 *
 * @package    Framework
 * @subpackage Http
 * @since      1.0.0
 */
namespace Kirki\Framework\Http;

\defined('ABSPATH') || exit;
use Kirki\Framework\Http\Concerns\InteractsWithCookies;
class RedirectResponse
{
    use InteractsWithCookies;
    /**
     * The redirect target URL.
     *
     * @var string
     *
     * @since 1.0.0
     */
    protected $url;
    /**
     * The HTTP redirect status code.
     *
     * @var int
     *
     * @since 1.0.0
     */
    protected $status;
    /**
     * Create a new RedirectResponse instance.
     *
     * @param string $url The redirect target URL.
     * @param int $status The HTTP status code.
     *
     * @return void
     *
     * @since 1.0.0
     */
    public function __construct(string $url, int $status = 302)
    {
        $this->url = $url;
        $this->status = $status;
    }
    /**
     * Get the redirect URL.
     *
     * @return string
     *
     * @since 1.0.0
     */
    public function get_url()
    {
        return $this->url;
    }
    /**
     * Get the HTTP status code.
     *
     * @return int
     *
     * @since 1.0.0
     */
    public function get_status()
    {
        return $this->status;
    }
    /**
     * Send the redirect and terminate the request.
     *
     * @return void
     *
     * @since 1.0.0
     */
    public function send()
    {
        $this->cookie_manager()->flush_queued_cookies();
        wp_safe_redirect($this->url, $this->status);
        exit;
    }
}

← Back to Directory Edit File 🔒 Chmod

WP File Manager