From a65353de3afa90683e9721ee294da376bf60a423 Mon Sep 17 00:00:00 2001 From: Ben Keith Date: Thu, 21 May 2020 13:06:58 -0400 Subject: [PATCH 1/9] Copy in Largo's metabox function file, which will cause errors for its reliance upon largo_add_meta_box and largo_register_meta_input --- functions.php | 5 ++++- library/metabox-subhead.php | 45 +++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 library/metabox-subhead.php diff --git a/functions.php b/functions.php index d825b94..6f6869f 100755 --- a/functions.php +++ b/functions.php @@ -56,6 +56,9 @@ /** Customizer Additions */ require_once( 'library/bs-customizer-additions.php' ); +/** The "Subhead" metabox and related functions */ +require_once( 'library/metabox-subhead.php' ); + /** Required and Recommended Plugins */ require_once( 'library/class-tgm-plugin-activation.php' ); require_once( 'library/bs-plugin-activation.php' ); @@ -142,4 +145,4 @@ function calhealth_post_bottom_widget_area() { dynamic_sidebar( 'article-bottom' ); } } -add_action( 'calhealth_post_bottom_widget_area', 'calhealth_post_bottom_widget_area' ); \ No newline at end of file +add_action( 'calhealth_post_bottom_widget_area', 'calhealth_post_bottom_widget_area' ); diff --git a/library/metabox-subhead.php b/library/metabox-subhead.php new file mode 100644 index 0000000..587fc05 --- /dev/null +++ b/library/metabox-subhead.php @@ -0,0 +1,45 @@ +ID ); + wp_nonce_field( 'largo_meta_box_nonce', 'meta_box_nonce' ); + ?> + + +

+ Date: Fri, 22 May 2020 01:00:42 -0400 Subject: [PATCH 2/9] Test submission results in all the errors. --- library/metabox-subhead.php | 58 ++++++++++++++++++++++++++++++------- 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/library/metabox-subhead.php b/library/metabox-subhead.php index 587fc05..3c6910f 100644 --- a/library/metabox-subhead.php +++ b/library/metabox-subhead.php @@ -11,7 +11,7 @@ function subtitle_meta_box_display() { global $post; $values = get_post_custom( $post->ID ); - wp_nonce_field( 'largo_meta_box_nonce', 'meta_box_nonce' ); + wp_nonce_field( 'subtitle_meta_box_nonce', 'subtitle_meta_box_nonce' ); ?> -

+