[wp-trac] [WordPress Trac] #35034: Handling undefined index notices in wp_old_slug_redirect

WordPress Trac noreply at wordpress.org
Sat Dec 12 08:21:00 UTC 2015


#35034: Handling undefined index notices in wp_old_slug_redirect
--------------------------+-----------------------------
 Reporter:  nirajkvinit   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  4.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Following variables {{{$wp_query->query_vars['name']}}},
 {{{$wp_query->query_vars['year']}}},
 {{{$wp_query->query_vars['monthnum']}}}, and
 {{{$wp_query->query_vars['day']}}} in the function
 {{{wp_old_slug_redirect}}} should be checked with isset. Else undefined
 index notices may arise.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35034>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list