From af6103eaf73d04332c268d3101b7221e904b3095 Mon Sep 17 00:00:00 2001 From: BE-Webdesign Date: Fri, 20 Oct 2017 13:38:38 -0400 Subject: [PATCH 1/2] Fix missing variable reference in meta-box-partial-page.php Fix minor PHP error. See https://github.com/WordPress/gutenberg/pull/2804#discussion_r145954650 --- lib/meta-box-partial-page.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/meta-box-partial-page.php b/lib/meta-box-partial-page.php index 766730ee5f29a..6077875644e74 100644 --- a/lib/meta-box-partial-page.php +++ b/lib/meta-box-partial-page.php @@ -69,9 +69,12 @@ function gutenberg_meta_box_partial_page( $post_type, $meta_box_context ) { global $post, $wp_meta_boxes, $hook_suffix, $current_screen, $wp_locale; + // This page should always match up with the edit action. + $action = 'edit'; + gutenberg_meta_box_partial_page_admin_header( $hook_suffix, $current_screen, $wp_locale ); - gutenberg_meta_box_partial_page_post_form( $post, $location ); + gutenberg_meta_box_partial_page_post_form( $post, $location, $action ); // Handle meta box state. $_original_meta_boxes = $wp_meta_boxes; @@ -317,9 +320,6 @@ function gutenberg_meta_box_partial_page_admin_header( $hook_suffix, $current_sc */ $admin_body_classes = apply_filters( 'admin_body_class', '' ); - // This page should always match up with the edit action. - $action = 'edit'; - ?>