WordPress.org

Plugin Directory

Changeset 567867


Ignore:
Timestamp:
07/05/12 15:50:34 (22 months ago)
Author:
jbrinley
Message:

use the identified $callback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-router/trunk/WP_Route.class.php

    r393086 r567867  
    185185        $args = $this->get_query_args($query, 'page'); 
    186186        ob_start(); 
    187         $returned = call_user_func_array($this->page_callback, $args); 
     187        $returned = call_user_func_array($callback, $args); 
    188188        $echoed = ob_get_clean(); 
    189189 
     
    221221            return FALSE; // nobody gets in 
    222222        } 
    223         if ( is_callable($this->access_callback) ) { 
     223        if ( is_callable($callback) ) { 
    224224            $args = $this->get_query_args($query, 'access'); 
    225             return (bool)call_user_func_array($this->access_callback, $args); 
     225            return (bool)call_user_func_array($callback, $args); 
    226226        } 
    227227        return (bool)$this->access_callback; 
Note: See TracChangeset for help on using the changeset viewer.