Skip to content

Commit

Permalink
Fix mistakes from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Sep 8, 2016
1 parent 4dee496 commit 12cea13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
1 change: 0 additions & 1 deletion includes/CMB2_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,6 @@ public function _set_field_defaults( $args ) {
'column' => false,
'js_dependencies' => array(),
'show_in_rest' => null,
'js_dependencies' => array(),
) );

/*
Expand Down
5 changes: 5 additions & 0 deletions includes/CMB2_Hookup_Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ abstract class CMB2_Hookup_Base {
*/
protected $object_type = 'post';

/**
* Constructor
* @since 2.0.0
* @param CMB2 $cmb The CMB2 object to hookup
*/
public function __construct( CMB2 $cmb ) {
$this->cmb = $cmb;
$this->object_type = $this->cmb->mb_object_type();
Expand Down
13 changes: 0 additions & 13 deletions includes/CMB2_hookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,13 @@ class CMB2_hookup extends CMB2_Hookup_Base {
*/
protected static $css_registration_done = false;

/**
* @var CMB2 object
* @since 2.0.2
*/
protected $cmb;

/**
* CMB taxonomies array for term meta
* @var array
* @since 2.2.0
*/
protected $taxonomies = array();

/**
* The object type we are performing the hookup for
* @var string
* @since 2.0.9
*/
protected $object_type = 'post';

/**
* Custom field columns.
* @var array
Expand Down

0 comments on commit 12cea13

Please sign in to comment.