WordPress.org

Plugin Directory

Changeset 577166


Ignore:
Timestamp:
07/25/12 13:58:53 (21 months ago)
Author:
nprasath002
Message:

using call_user_func

Location:
push-syndication
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • push-syndication/tags/1.0/includes/class-wp-client-factory.php

    r577126 r577166  
    2121 
    2222        if( class_exists($class) ) { 
    23             return $class::display_settings( $site ); 
     23            return call_user_func( array( $class, 'display_settings' ), $site ); 
    2424        } 
    2525 
     
    3232        $class = $_POST['transport_type'] . '_client'; 
    3333        if( class_exists($class) ) { 
    34             return $class::save_settings( $site_ID ); 
     34            return call_user_func( array( $class, 'save_settings' ), $site_ID ); 
    3535        } 
    3636 
  • push-syndication/trunk/includes/class-wp-client-factory.php

    r577126 r577166  
    2121 
    2222        if( class_exists($class) ) { 
    23             return $class::display_settings( $site ); 
     23            return call_user_func( array( $class, 'display_settings' ), $site ); 
    2424        } 
    2525 
     
    3232        $class = $_POST['transport_type'] . '_client'; 
    3333        if( class_exists($class) ) { 
    34             return $class::save_settings( $site_ID ); 
     34            return call_user_func( array( $class, 'save_settings' ), $site_ID ); 
    3535        } 
    3636 
Note: See TracChangeset for help on using the changeset viewer.