Skip to content

Commit

Permalink
Renamed method. 5.0.4 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
sybrew committed Jan 31, 2024
1 parent fe91a87 commit 0d728eb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion autodescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: The SEO Framework
* Plugin URI: https://theseoframework.com/
* Description: An automated, advanced, accessible, unbranded and extremely fast SEO solution for your WordPress website.
* Version: 5.0.4-RC-1
* Version: 5.0.4
* Author: The SEO Framework Team
* Author URI: https://theseoframework.com/
* License: GPLv3
Expand Down
2 changes: 1 addition & 1 deletion inc/classes/helper/query.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ public static function is_blog( $post = null ) {
}

// If not blog page is assigned, it won't exist. Ignore whatever WP thinks.
return Query\Utils::blog_page_exists() && \is_home();
return Query\Utils::has_blog_page() && \is_home();
}

/**
Expand Down
6 changes: 3 additions & 3 deletions inc/classes/helper/query/utils.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ public static function has_page_on_front() {

/**
* Determines whether the blog page exists.
* This is not always a "blog as page" -- for that, just check the `'page_for_posts'` option.
* This is not always a "blog as page" -- for that, use `tsf()->query()->is_blog_as_page()`.
*
* @since 5.0.3
* @since 5.0.4
*
* @return bool
*/
public static function blog_page_exists() {
public static function has_blog_page() {
return ! static::has_page_on_front() || \get_option( 'page_for_posts' );
}
}
2 changes: 1 addition & 1 deletion inc/classes/internal/debug.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ private static function get_debug_query_output( $cache_version = 'nope' ) {
$is_post_type_supported = Post_Type::is_supported();
$is_post_type_archive_supported = Post_Type::is_pta_supported();
$has_page_on_front = Query\Utils::has_page_on_front();
$blog_page_exists = Query\Utils::blog_page_exists();
$has_blog_page = Query\Utils::has_blog_page();
$is_taxonomy_supported = Taxonomy::is_supported();
$get_post_type = \get_post_type();
$get_post_type_real_id = Query::get_post_type_real_id();
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ You can also output these breadcrumbs visually in your theme by [using a shortco

= 5.0.4 =

This update addresses an issue that affected detection of the assigned blog page.
This tiny update [addresses an issue](https://theseoframework.com/?p=4215) that affected detection of the assigned blog page.

= 5.0.3 =

Expand Down

0 comments on commit 0d728eb

Please sign in to comment.