Skip to:
Content

bbPress.org

Changeset 4253


Ignore:
Timestamp:
10/13/2012 09:12:00 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Add magic "call" method to bbPress class, to prevent fatal errors when invalid bbpress() methods are used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbpress.php

    r4250 r4253  
    157157     */
    158158    public function __set( $key, $value ) { $this->data[$key] = $value; }
     159
     160    /**
     161     * Magic method to prevent notices and errors from invalid method calls
     162     *
     163     * @since bbPress (r4252)
     164     */
     165    public function __call( $name = '', $args = array() ) { unset( $name, $args ); return null; }
    159166
    160167    /** Private Methods *******************************************************/
Note: See TracChangeset for help on using the changeset viewer.