Plugin Directory


Ignore:
Timestamp:
03/12/2019 09:22:28 AM (7 years ago)
Author:
Yoast
Message:

Committing 10.0 to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordpress-seo/trunk/src/yoast-orm-wrapper.php

    r2039487 r2048873  
    3535     * instances of this class.
    3636     *
    37      * @var string $_class_name
     37     * @var string
    3838     */
    39     protected $_class_name;
     39    protected $class_name;
    4040
    4141    /**
     
    4848     */
    4949    public function set_class_name( $class_name ) {
    50         $this->_class_name = $class_name;
     50        $this->class_name = $class_name;
    5151    }
    5252
     
    6565        $filter_function = \array_shift( $args );
    6666        \array_unshift( $args, $this );
    67         if ( \method_exists( $this->_class_name, $filter_function ) ) {
    68             return \call_user_func_array( array( $this->_class_name, $filter_function ), $args );
     67        if ( \method_exists( $this->class_name, $filter_function ) ) {
     68            return \call_user_func_array( array( $this->class_name, $filter_function ), $args );
    6969        }
    7070
     
    104104
    105105        /** @var Yoast_Model $model */
    106         $model = new $this->_class_name();
     106        $model = new $this->class_name();
    107107        $model->set_orm( $orm );
    108108
Note: See TracChangeset for help on using the changeset viewer.