WordPress.org

Make WordPress Core

Changeset 19155


Ignore:
Timestamp:
11/04/2011 03:06:11 PM (9 years ago)
Author:
nacin
Message:

Use call_user_func_array() as call_user_func() cannot pass by reference. see #18785.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/screen.php

    r19154 r19155  
    738738                            // If it exists, fire tab callback.
    739739                            if ( ! empty( $tab['callback'] ) )
    740                                 call_user_func( $tab['callback'], $this, $tab );
     740                                call_user_func_array( $tab['callback'], array( $this, $tab ) );
    741741                            ?>
    742742                        </div>
Note: See TracChangeset for help on using the changeset viewer.