Changeset 2048873 for wordpress-seo/trunk/src/yoast-orm-wrapper.php
- Timestamp:
- 03/12/2019 09:22:28 AM (7 years ago)
- File:
-
- 1 edited
-
wordpress-seo/trunk/src/yoast-orm-wrapper.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-seo/trunk/src/yoast-orm-wrapper.php
r2039487 r2048873 35 35 * instances of this class. 36 36 * 37 * @var string $_class_name37 * @var string 38 38 */ 39 protected $ _class_name;39 protected $class_name; 40 40 41 41 /** … … 48 48 */ 49 49 public function set_class_name( $class_name ) { 50 $this-> _class_name = $class_name;50 $this->class_name = $class_name; 51 51 } 52 52 … … 65 65 $filter_function = \array_shift( $args ); 66 66 \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 ); 69 69 } 70 70 … … 104 104 105 105 /** @var Yoast_Model $model */ 106 $model = new $this-> _class_name();106 $model = new $this->class_name(); 107 107 $model->set_orm( $orm ); 108 108
Note: See TracChangeset
for help on using the changeset viewer.