[wp-trac] [WordPress Trac] #17559: Deprecated query_string doesn't support array arguments

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 3 09:40:26 UTC 2011


#17559: Deprecated query_string doesn't support array arguments
--------------------------+--------------------
 Reporter:  nacin         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1.4
Component:  Query         |     Version:
 Severity:  critical      |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by scribu):

 Besides that, in some places you're calling the deprecated hook within the
 {{{if}}} block, while in others it's called before it.

 A do_deprecated_action() function would reduce duplicated code, but would
 also have to have a different signature, which could get messy. First try:

 {{{
 function do_deprecated_action( $old_action, $version_deprecated,
 $new_action = '', $rest_of_args = array() )
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17559#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list