• Resolved Ben Sibley

    (@bensibley)


    Hi there,

    When called on the shop page, the get_queried_object() function previously returned data for the shop page. As of the 11.0.0-beta.1 update, it returns null. This has caused technical issues for us that we’ve addressed, but I thought I should bring it to your attention, as it is likely affecting many sites and doesn’t seem intentional.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ben Sibley

    (@bensibley)

    Nevermind. I found the blog post about get_queried_object() and it returns WP_Post, not null.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi @bensibley!

    Thanks for following up and for sharing your findings!

    I’m glad you were able to find the blog post and confirm that get_queried_object() returns a WP_Post for the Shop page rather than null.

    We appreciate you taking the time to investigate and share this with us. If you encounter any other issues in the future, please feel free to create a new ticket and we’ll be happy to help.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.