wp-parsely
wp-parsely copied to clipboard
Review Utils::get_page_on_front() returns bool
Is your request related to a problem?
We have this Utils::get_page_on_front() function, which is used by our Metadata->construct_metadata() function.
The Utils::get_page_on_front() name gives the impression that it could return a string (e.g. a page URL or slug) or an int (e.g. page ID). However, this function actually returns a bool. As such, it is either named inappropriately, or there is a better way to do things.
Describe the solution you'd like
Investigate if anything needs to be changed there.
has_page_on_front()?