HEX
Server: Apache
System: Linux d5123.usc1.stableserver.net 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 24 12:53:17 EDT 2025 x86_64
User: d5123 (1001)
PHP: 8.4.21
Disabled: NONE
Upload Files
File: /home/d5123/myboofola_com/wp-content/plugins/unusedcss/includes/RapidLoad_Buffer.php
<?php

defined( 'ABSPATH' ) or die();

class RapidLoad_Buffer
{

    public function __construct()
    {
        add_action('init', [$this, 'maybe_init_process'], defined('RAPIDLOAD_BUFFER_PRIORITY') ? RAPIDLOAD_BUFFER_PRIORITY : -10);
    }

    public function maybe_init_process() {
        ob_start( [ $this, 'maybe_process_buffer' ] );
    }

    public function maybe_process_buffer( $buffer ) {

        do_action( 'rapidload_before_maybe_process_buffer', $buffer );

        if ( ! $this->is_html( $buffer ) && apply_filters('rapidload_buffer_is_html', true) ) {
            return $buffer;
        }

        return (string) apply_filters( 'rapidload_buffer', $buffer );
    }

    protected function is_html( $buffer ) {
        return preg_match( '/<\/html>/i', $buffer );
    }
}