Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
Move object_id/object_type designation to before the cmb_show_on fi…
Browse files Browse the repository at this point in the history
…lter. Fixes #445
  • Loading branch information
jtsternberg committed Feb 6, 2014
1 parent e21f86d commit daee06a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,13 @@ public static function save_fields( $meta_box, $object_id, $object_type = '' ) {

$meta_box['show_on'] = empty( $meta_box['show_on'] ) ? array( 'key' => false, 'value' => false ) : $meta_box['show_on'];

if ( ! apply_filters( 'cmb_show_on', true, $meta_box ) )
return;

self::set_object_id( $object_id );
// Set/get type
$object_type = self::set_object_type( $object_type ? $object_type : self::set_mb_type( $meta_box ) );

if ( ! apply_filters( 'cmb_show_on', true, $meta_box ) )
return;

// save field ids of those that are updated
$updated = array();

Expand Down

0 comments on commit daee06a

Please sign in to comment.