Skip to content

Commit

Permalink
Add back-compat handler for the renamed "get_string" method
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Aug 23, 2016
1 parent 35c14ff commit b079227
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/CMB2_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ public function __construct( $args ) {
* @return mixed Value of field argument
*/
public function __call( $name, $arguments ) {
if ( 'string' === $name ) {
return call_user_func_array( array( $this, 'get_string' ), $arguments );
}

$key = isset( $arguments[0] ) ? $arguments[0] : false;
return $this->args( $name, $key );
}
Expand Down

0 comments on commit b079227

Please sign in to comment.