HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/mussarq_bak/wp-content/themes/wpnull24/framework/plugins-support/us_header_builder.php
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );

/**
 * Header Builder support
 *
 * Show alert message when the plugin version is not compatible with the current theme version
 */

if ( defined( 'US_HB_VERSION' ) AND version_compare( US_HB_VERSION, '2.5', '<' ) ) {

	add_filter( 'us_config_theme-options', 'us_remove_old_ushb_options' );
	function us_remove_old_ushb_options( $config ) {
		if ( is_admin() ) {
			unset( $config['header'] );
			unset( $config['hb'] );
		}
		return $config;
	}

	add_action( 'admin_notices', 'us_update_ushb_notice', 1 );
	function us_update_ushb_notice() {
		$output = '<div class="error us-migration for-hb">';
		$output .= '<h2>Update Header Builder</h2>';
		$output .= '<p>For correct work of your website header you need to update "Header Builder" on the <a href="' . admin_url( 'plugins.php' ) . '">Plugins page</a>.<br>If you don\'t see the update notification there, just delete "Header Builder" plugin and install it again via ' . US_THEMENAME . ' > Addons page.</p>';
		$output .= '</div>';

		echo $output;
	}
}