Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Jul 9, 2017
1 parent ff8c3be commit c22e9ff
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
12 changes: 0 additions & 12 deletions includes/CMB2.php
Expand Up @@ -1270,18 +1270,6 @@ protected function get_default_args( $field_args, $field_group = null ) {
return $args;
}

/**
* Get a new field object specific to this CMB2 object.
*
* @since 2.2.0
* @param array $field_args Metabox field config array.
* @param CMB2_Field $field_group (optional) CMB2_Field object (group parent).
* @return CMB2_Field CMB2_Field object.
*/
protected function get_new_field( $field_args, $field_group = null ) {
return new CMB2_Field( $this->get_default_args( $field_args, $field_group ) );
}

/**
* When fields are added in the old-school way, intitate them as they should be
*
Expand Down
2 changes: 1 addition & 1 deletion includes/CMB2_Field.php
Expand Up @@ -1237,7 +1237,7 @@ protected function get_default_args( $field_args, $field_group = null ) {
}

/**
* Returns a cloned version of this field object with, but with
* Returns a cloned version of this field object, but with
* modified/overridden field arguments.
*
* @since 2.2.2
Expand Down
1 change: 0 additions & 1 deletion includes/types/CMB2_Type_File.php
Expand Up @@ -15,7 +15,6 @@ class CMB2_Type_File extends CMB2_Type_File_Base {
/**
* Handles outputting an 'file' field
*
* @since 2.2.5
* @param array $args Override arguments
* @return string Form input element
*/
Expand Down

0 comments on commit c22e9ff

Please sign in to comment.