WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #15158, comment 34


Ignore:
Timestamp:
01/04/13 20:15:18 (18 months ago)
Author:
miqrogroove
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15158, comment 34

    initial v1  
    1 I think a better strategy would be to run to separate loops: foreach($args) to create a list of which args were NULL and unset them, followed by foreach($positions[0]) to modify the query string. 
     1I think a better strategy would be to run two separate loops: foreach($args) to create a list of which args were NULL and unset them, followed by foreach($positions[0]) to modify the query string. 
    22 
    33This strategy would avoid duplicating the $args array, which is potentially extremely expensive when working with large queries.