PluginProbe
Parse.ly / 3.14.1
Parse.ly v3.14.1
3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 3.20.2 3.20.3 All 105 releases
← All changes | src/Metadata/class-metadata-builder.php +4 -3 3.18.13.14.1 View file →
@@ -10,12 +10,13 @@
10 10
11 11 namespace Parsely\Metadata;
12 12
13 13 use Parsely\Parsely;
14 -use Parsely\Utils\Utils;
15 14 use WP_Post;
16 15 use WP_User;
17 16
17 +use function Parsely\Utils\get_default_category;
18 +
18 19 /**
19 20 * Abstract class that implements modular builders for Metadata.
20 21 *
21 22 * It should be extended in subclasses that implement a particular page view to render
@@ -364,9 +365,9 @@
364 365 $taxonomy_dropdown_choice = get_the_terms( $post_obj->ID, $parsely_options['custom_taxonomy_section'] );
365 366 // Get top-level taxonomy name for chosen taxonomy and assign to $parent_name; it will be used
366 367 // as the category value if 'use_top_level_cats' option is checked.
367 368 // Assign as the default category name if no value is checked for the chosen taxonomy.
368 - $category_name = get_cat_name( Utils::get_default_category() );
369 + $category_name = get_cat_name( get_default_category() );
369 370 if ( false !== $taxonomy_dropdown_choice && ! is_wp_error( $taxonomy_dropdown_choice ) ) {
370 371 if ( $parsely_options['use_top_level_cats'] ) {
371 372 $first_term = array_shift( $taxonomy_dropdown_choice );
372 373 if ( null !== $first_term ) {
@@ -643,9 +644,9 @@
643 644 $tags = explode( '/', $last_tag );
644 645 }
645 646
646 647 // Remove default category name from tags if needed.
647 - $default_category_name = get_cat_name( Utils::get_default_category() );
648 + $default_category_name = get_cat_name( get_default_category() );
648 649 return array_diff( $tags, array( $default_category_name ) );
649 650 }
650 651
651 652 /**