You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Is your request related to a problem?
We have this
Utils::get_page_on_front()
function, which is used by ourMetadata->construct_metadata()
function.The
Utils::get_page_on_front()
name gives the impression that it could return astring
(e.g. a page URL or slug) or anint
(e.g. page ID). However, this function actually returns abool
. 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.
The text was updated successfully, but these errors were encountered: