[wp-trac] Re: [WordPress Trac] #2584: do_action merges array args, causing data loss prior to callback

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 21 17:27:29 GMT 2006


#2584: do_action merges array args, causing data loss prior to callback
----------------------------+-----------------------------------------------
       Id:  2584            |      Status:  new                     
Component:  Administration  |    Modified:  Tue Mar 21 17:27:29 2006
 Severity:  normal          |   Milestone:                          
 Priority:  normal          |     Version:  2.0.2                   
    Owner:  anonymous       |    Reporter:  skeltoac                
----------------------------+-----------------------------------------------
Old description:

> Try passing two arrays into an action callback.

New description:

 Try passing two associative arrays into an action callback.

Comment (by skeltoac):

 davidhouse, do you see how the first array is "demoted" by one level? You
 might have to test this yourself to see what it's doing.

 Here's the use case: Using the update_option_{$option_name} action, log
 the old and new values of an option that stores an associative array.
 (apply #2553 first)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2584>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list