Skip to content

Commit

Permalink
Fix actions
Browse files Browse the repository at this point in the history
Fix actions that were causing an error. Accidentally duplicated the hook
names.
  • Loading branch information
BE-Webdesign committed Sep 8, 2017
1 parent c9c170f commit 525cc47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/metabox-partial-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ function resizeIframe( obj ) {
*
* @param WP_Post $post Post object.
*/
$wp_meta_boxes = apply_filters( 'gutenberg_metaboxes', $wp_meta_boxes );
$wp_meta_boxes = apply_filters( 'filter_gutenberg_metaboxes', $wp_meta_boxes );

$locations = array();

Expand Down Expand Up @@ -492,6 +492,6 @@ function gutenberg_filter_metaboxes( $metaboxes ) {
return $metaboxes;
}

add_filter( 'gutenberg_metaboxes', 'gutenberg_filter_metaboxes', 10, 1 );
add_filter( 'filter_gutenberg_metaboxes', 'gutenberg_filter_metaboxes', 10, 1 );

?>

0 comments on commit 525cc47

Please sign in to comment.