_taxonomies_for_indexables(), true ); } /** * This builds a list of indexable taxonomies. * * @return array The indexable taxonomies. */ public function get_indexable_taxonomies() { $public_taxonomies = $this->get_public_taxonomies(); $excluded_taxonomies = $this->get_excluded_taxonomies_for_indexables(); // `array_values`, to make sure that the keys are reset. return \array_values( \array_diff( $public_taxonomies, $excluded_taxonomies ) ); } /** * Returns an array of complete taxonomy objects for all indexable taxonomies. * * @return array List of indexable indexables objects. */ public function get_indexable_taxonomy_objects() { $taxonomy_objects = []; $indexable_taxonomies = $this->get_indexable_taxonomies(); foreach ( $indexable_taxonomies as $taxonomy ) { $taxonomy_object = \get_taxonomy( $taxonomy ); if ( ! empty( $taxonomy_object ) ) { $taxonomy_objects[ $taxonomy ] = $taxonomy_object; } } return $taxonomy_objects; } } _taxonomies_for_indexables(), true ); } /** * This builds a list of indexable taxonomies. * * @return array The indexable taxonomies. */ public function get_indexable_taxonomies() { $public_taxonomies = $this->get_public_taxonomies(); $excluded_taxonomies = $this->get_excluded_taxonomies_for_indexables(); // `array_values`, to make sure that the keys are reset. return \array_values( \array_diff( $public_taxonomies, $excluded_taxonomies ) ); } /** * Returns an array of complete taxonomy objects for all indexable taxonomies. * * @return array List of indexable indexables objects. */ public function get_indexable_taxonomy_objects() { $taxonomy_objects = []; $indexable_taxonomies = $this->get_indexable_taxonomies(); foreach ( $indexable_taxonomies as $taxonomy ) { $taxonomy_object = \get_taxonomy( $taxonomy ); if ( ! empty( $taxonomy_object ) ) { $taxonomy_objects[ $taxonomy ] = $taxonomy_object; } } return $taxonomy_objects; } } _taxonomies_for_indexables(), true ); } /** * This builds a list of indexable taxonomies. * * @return array The indexable taxonomies. */ public function get_indexable_taxonomies() { $public_taxonomies = $this->get_public_taxonomies(); $excluded_taxonomies = $this->get_excluded_taxonomies_for_indexables(); // `array_values`, to make sure that the keys are reset. return \array_values( \array_diff( $public_taxonomies, $excluded_taxonomies ) ); } /** * Returns an array of complete taxonomy objects for all indexable taxonomies. * * @return array List of indexable indexables objects. */ public function get_indexable_taxonomy_objects() { $taxonomy_objects = []; $indexable_taxonomies = $this->get_indexable_taxonomies(); foreach ( $indexable_taxonomies as $taxonomy ) { $taxonomy_object = \get_taxonomy( $taxonomy ); if ( ! empty( $taxonomy_object ) ) { $taxonomy_objects[ $taxonomy ] = $taxonomy_object; } } return $taxonomy_objects; } } _taxonomies_for_indexables(), true ); } /** * This builds a list of indexable taxonomies. * * @return array The indexable taxonomies. */ public function get_indexable_taxonomies() { $public_taxonomies = $this->get_public_taxonomies(); $excluded_taxonomies = $this->get_excluded_taxonomies_for_indexables(); // `array_values`, to make sure that the keys are reset. return \array_values( \array_diff( $public_taxonomies, $excluded_taxonomies ) ); } /** * Returns an array of complete taxonomy objects for all indexable taxonomies. * * @return array List of indexable indexables objects. */ public function get_indexable_taxonomy_objects() { $taxonomy_objects = []; $indexable_taxonomies = $this->get_indexable_taxonomies(); foreach ( $indexable_taxonomies as $taxonomy ) { $taxonomy_object = \get_taxonomy( $taxonomy ); if ( ! empty( $taxonomy_object ) ) { $taxonomy_objects[ $taxonomy ] = $taxonomy_object; } } return $taxonomy_objects; } } _taxonomies_for_indexables(), true ); } /** * This builds a list of indexable taxonomies. * * @return array The indexable taxonomies. */ public function get_indexable_taxonomies() { $public_taxonomies = $this->get_public_taxonomies(); $excluded_taxonomies = $this->get_excluded_taxonomies_for_indexables(); // `array_values`, to make sure that the keys are reset. return \array_values( \array_diff( $public_taxonomies, $excluded_taxonomies ) ); } /** * Returns an array of complete taxonomy objects for all indexable taxonomies. * * @return array List of indexable indexables objects. */ public function get_indexable_taxonomy_objects() { $taxonomy_objects = []; $indexable_taxonomies = $this->get_indexable_taxonomies(); foreach ( $indexable_taxonomies as $taxonomy ) { $taxonomy_object = \get_taxonomy( $taxonomy ); if ( ! empty( $taxonomy_object ) ) { $taxonomy_objects[ $taxonomy ] = $taxonomy_object; } } return $taxonomy_objects; } }
Fatal error: Uncaught Error: Class "WPSEO_Post_Type" not found in /htdocs/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option-titles.php:311 Stack trace: #0 /htdocs/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option.php(447): WPSEO_Option_Titles->enrich_defaults() #1 /htdocs/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option.php(765): WPSEO_Option->get_defaults() #2 /htdocs/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option.php(485): WPSEO_Option->array_filter_merge(Array) #3 /htdocs/wp-includes/class-wp-hook.php(312): WPSEO_Option->get_option(Array) #4 /htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #5 /htdocs/wp-includes/option.php(253): apply_filters('option_wpseo_ti...', Array, 'wpseo_titles') #6 /htdocs/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php(254): get_option('wpseo_titles') #7 /htdocs/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php(231): WPSEO_Options::get_option('wpseo_titles') #8 /htdocs/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php(214): WPSEO_Options::get_options(Array) #9 /htdocs/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php(295): WPSEO_Options::get_all() #10 /htdocs/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php(275): WPSEO_Options::prime_cache() #11 /htdocs/wp-content/plugins/wordpress-seo/src/helpers/options-helper.php(25): WPSEO_Options::get('disable-attachm...', NULL) #12 /htdocs/wp-content/plugins/wordpress-seo/src/conditionals/attachment-redirections-enabled-conditional.php(34): Yoast\WP\SEO\Helpers\Options_Helper->get('disable-attachm...') #13 /htdocs/wp-content/plugins/wordpress-seo/src/loader.php(270): Yoast\WP\SEO\Conditionals\Attachment_Redirections_Enabled_Conditional->is_met() #14 /htdocs/wp-content/plugins/wordpress-seo/src/loader.php(208): Yoast\WP\SEO\Loader->conditionals_are_met('Yoast\\WP\\SEO\\In...') #15 /htdocs/wp-includes/class-wp-hook.php(310): Yoast\WP\SEO\Loader->load_integrations('') #16 /htdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #17 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #18 /htdocs/wp-settings.php(632): do_action('init') #19 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #20 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #21 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #22 /htdocs/index.php(17): require('/htdocs/wp-blog...') #23 {main} thrown in /htdocs/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option-titles.php on line 311