[wp-trac] [WordPress Trac] #53262: wp_robots() (via wp_die) triggers a "doing_it_wrong_trigger_error", but should not.

WordPress Trac noreply at wordpress.org
Wed Aug 3 15:31:55 UTC 2022


#53262: wp_robots() (via wp_die) triggers a "doing_it_wrong_trigger_error", but
should not.
-------------------------------------------------+-------------------------
 Reporter:  juliobox                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  General                              |     Version:  5.7
 Severity:  minor                                |  Resolution:
 Keywords:  has-patch needs-testing 2nd-opinion  |     Focuses:
-------------------------------------------------+-------------------------

Comment (by Starbuck):

 Verified in 6.0.1 ... open ticket so no surprise, just confirming. :)


 {{{
 #1 /wp-includes/functions.php(5831): trigger_error()
 #2 /wp-includes/query.php(881): _doing_it_wrong()
 #3 /wp-includes/robots-template.php(93): is_embed()
 #4 /wp-includes/class-wp-hook.php(307): wp_robots_noindex_embeds()
 #5 /wp-includes/plugin.php(191): WP_Hook->apply_filters()
 #6 /wp-includes/robots-template.php(32): apply_filters()
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53262#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list