odel->get_links_model(); } } /** * Checks if Polylang is active on the current blog (useful when the blog is switched). * * @since 3.5.2 * * @return bool */ protected function is_active_on_current_site(): bool { return pll_is_plugin_active( POLYLANG_BASENAME ) && get_option( 'polylang' ); } /** * Check if the customize menu should be removed or not. * * @since 3.2 * * @return bool True if it should be removed, false otherwise. */ public function should_customize_menu_be_removed() { // Exit if a block theme isn't activated. if ( ! function_exists( 'wp_is_block_theme' ) || ! wp_is_block_theme() ) { return false; } return ! $this->is_customize_register_hooked(); } /** * Tells whether or not Polylang or third party callbacks are hooked to `customize_register`. * * @since 3.4.3 * * @global $wp_filter * * @return bool True if Polylang's callbacks are hooked, false otherwise. */ protected function is_customize_register_hooked() { global $wp_filter; if ( empty( $wp_filter['customize_register'] ) || ! $wp_filter['customize_register'] instanceof WP_Hook ) { return false; } /* * 'customize_register' is hooked by: * @see PLL_Nav_Menu::create_nav_menu_locations() * @see PLL_Frontend_Static_Pages::filter_customizer() */ $floor = 0; if ( ! empty( $this->nav_menu ) && (bool) $wp_filter['customize_register']->has_filter( 'customize_register', array( $this->nav_menu, 'create_nav_menu_locations' ) ) ) { ++$floor; } if ( ! empty( $this->static_pages ) && (bool) $wp_filter['customize_register']->has_filter( 'customize_register', array( $this->static_pages, 'filter_customizer' ) ) ) { ++$floor; } $count = array_sum( array_map( 'count', $wp_filter['customize_register']->callbacks ) ); return $count > $floor; } }
Fatal error: Uncaught Error: Class "PLL_Base" not found in /htdocs/wp-content/plugins/polylang/include/rest-request.php:11 Stack trace: #0 /htdocs/wp-content/plugins/polylang/vendor/composer/ClassLoader.php(576): include() #1 /htdocs/wp-content/plugins/polylang/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/htdocs/wp-cont...') #2 /htdocs/wp-content/plugins/polylang/include/class-polylang.php(249): Composer\Autoload\ClassLoader->loadClass('PLL_REST_Reques...') #3 /htdocs/wp-content/plugins/polylang/include/class-polylang.php(228): Polylang->init_context('PLL_REST_Reques...', Object(PLL_Model)) #4 /htdocs/wp-includes/class-wp-hook.php(324): Polylang->init('') #5 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /htdocs/wp-settings.php(559): do_action('plugins_loaded') #8 /htdocs/wp-config.php(86): require_once('/htdocs/wp-sett...') #9 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #10 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #11 /htdocs/index.php(17): require('/htdocs/wp-blog...') #12 {main} thrown in /htdocs/wp-content/plugins/polylang/include/rest-request.php on line 11