Notice: include(): Read of 3318 bytes failed with errno=14 Bad address in /home/primeinf/launiformsllc.com/wp-content/plugins/code-snippets/vendor/composer/ClassLoader.php on line 576
Notice: include(): Read of 3318 bytes failed with errno=14 Bad address in /home/primeinf/launiformsllc.com/wp-content/plugins/code-snippets/vendor/composer/ClassLoader.php on line 576
ageIgnore
*/
public function enqueue() {
$this->enqueue_styles();
$this->enqueue_scripts();
$this->add_localized_data();
}
/**
* Add classes to of WordPress admin.
*
* @codeCoverageIgnore
*
* @param string $classes Space-separated list of CSS classes.
*
* @return string
*/
public function body_class( $classes = '' ) {
return $classes . ' ' . join( ' ', $this->classes );
}
/**
* Save anything you want using onsave function.
*
* @codeCoverageIgnore
*/
public function save() {
call_user_func( $this->onsave, $this );
}
/**
* Contextual Help.
*
* @codeCoverageIgnore
*/
public function contextual_help() {
$screen = get_current_screen();
foreach ( $this->help as $tab_id => $tab ) {
$tab['id'] = $tab_id;
$tab['content'] = $this->get_help_content( $tab );
$screen->add_help_tab( $tab );
}
}
/**
* Render admin page content using render function you passed in config.
*
* @codeCoverageIgnore
*/
public function display() {
if ( is_null( $this->render ) ) {
return;
}
if ( 'settings' === $this->render ) {
return $this->display_settings();
}
if ( is_callable( $this->render ) ) {
call_user_func( $this->render, $this );
return;
}
if ( is_string( $this->render ) ) {
include_once $this->render;
}
}
/**
* Is the page is current page.
*
* @return bool
*/
public function is_current_page() {
return Param::get( 'page' ) === $this->id;
}
/**
* Enqueue styles
*
* @codeCoverageIgnore
*/
private function enqueue_styles() {
if ( ! isset( $this->assets['styles'] ) || empty( $this->assets['styles'] ) ) {
return;
}
foreach ( $this->assets['styles'] as $handle => $src ) {
wp_enqueue_style( $handle, $src, null, rank_math()->version );
}
}
/**
* Enqueue scripts.
*
* @codeCoverageIgnore
*/
private function enqueue_scripts() {
if ( ! isset( $this->assets['scripts'] ) || empty( $this->assets['scripts'] ) ) {
return;
}
foreach ( $this->assets['scripts'] as $handle => $src ) {
if ( $handle === 'media-editor' ) {
wp_enqueue_media();
}
wp_enqueue_script( $handle, $src, null, rank_math()->version, true );
}
do_action( 'rank-math/admin_enqueue_scripts' );
}
/**
* Get tab content
*
* @codeCoverageIgnore
*
* @param array $tab Tab to get content for.
*
* @return string
*/
private function get_help_content( $tab ) {
ob_start();
// If it is a function.
if ( isset( $tab['content'] ) && is_callable( $tab['content'] ) ) {
call_user_func( $tab['content'] );
}
// If it is a file.
if ( isset( $tab['view'] ) && $tab['view'] ) {
require $tab['view'];
}
return ob_get_clean();
}
/**
* Localized data.
*/
private function add_localized_data() {
if ( empty( $this->assets['json'] ) ) {
return;
}
foreach ( $this->assets['json'] as $key => $value ) {
Helper::add_json( $key, $value );
}
Helper::add_json(
'settings',
[
'general' => Helper::get_settings( 'general' ),
'titles' => Helper::get_settings( 'titles' ),
'sitemap' => Helper::get_settings( 'sitemap' ),
]
);
}
/**
* Display settings.
*/
private function display_settings() {
echo '';
}
}
Fatal error: Uncaught Error: Class "RankMath\Admin\Page" not found in /home/primeinf/launiformsllc.com/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-status.php:83
Stack trace:
#0 /home/primeinf/launiformsllc.com/wp-content/plugins/seo-by-rank-math/includes/module/class-base.php(86): RankMath\Status\Status->register_admin_page()
#1 /home/primeinf/launiformsllc.com/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-status.php(66): RankMath\Module\Base->__construct()
#2 /home/primeinf/launiformsllc.com/wp-content/plugins/seo-by-rank-math/includes/module/class-manager.php(504): RankMath\Status\Status->__construct()
#3 /home/primeinf/launiformsllc.com/wp-content/plugins/seo-by-rank-math/includes/module/class-manager.php(484): RankMath\Module\Manager->load_module('status', Object(RankMath\Module\Module))
#4 /home/primeinf/launiformsllc.com/wp-includes/class-wp-hook.php(353): RankMath\Module\Manager->load_modules('')
#5 /home/primeinf/launiformsllc.com/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array)
#6 /home/primeinf/launiformsllc.com/wp-includes/plugin.php(523): WP_Hook->do_action(Array)
#7 /home/primeinf/launiformsllc.com/wp-settings.php(757): do_action('after_setup_the...')
#8 /home/primeinf/launiformsllc.com/wp-config.php(105): require_once('/home/primeinf/...')
#9 /home/primeinf/launiformsllc.com/wp-load.php(50): require_once('/home/primeinf/...')
#10 /home/primeinf/launiformsllc.com/wp-blog-header.php(13): require_once('/home/primeinf/...')
#11 /home/primeinf/launiformsllc.com/index.php(17): require('/home/primeinf/...')
#12 {main}
thrown in /home/primeinf/launiformsllc.com/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-status.php on line 83