[wp-trac] [WordPress Trac] #25398: Multiple WordPress URL Parameters Causes Undefined ID and Nicename Errors

WordPress Trac noreply at wordpress.org
Sun Jan 19 19:33:06 UTC 2014


#25398: Multiple WordPress URL Parameters Causes Undefined ID and Nicename Errors
--------------------------------------+------------------------------
 Reporter:  chriscct7                 |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Query                     |     Version:  3.6.1
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |
--------------------------------------+------------------------------

Comment (by mordauk):

 `get_queried_object()` is returning the post type object but since the
 `author` query arg is set, `is_author()` returns true, which causes the
 undefined index error when the title is set to the author's name with
 `$title = $author->display_name;`.

 This can be fixed by adding `&& ! is_post_type_archive()` to the
 `is_author()` check.

 I'm not sure if there are any repercussions of this though.

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


More information about the wp-trac mailing list