From 0963c91af1ada46b202d451f5bb2e69f6a873ccc Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Thu, 12 Dec 2019 13:15:23 +0100 Subject: [PATCH] Consider the third argument of is_protected_meta optional (#14218) --- modules/sharedaddy/sharedaddy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/sharedaddy/sharedaddy.php b/modules/sharedaddy/sharedaddy.php index 82fe7af2bc3e2..ad70d3ea8ba57 100644 --- a/modules/sharedaddy/sharedaddy.php +++ b/modules/sharedaddy/sharedaddy.php @@ -204,14 +204,14 @@ function sharing_meta_box_save( $post_id ) { return $post_id; } -function sharing_meta_box_protected( $protected, $meta_key, $meta_type ) { +function sharing_meta_box_protected( $protected, $meta_key ) { if ( 'sharing_disabled' == $meta_key ) $protected = true; return $protected; } -add_filter( 'is_protected_meta', 'sharing_meta_box_protected', 10, 3 ); +add_filter( 'is_protected_meta', 'sharing_meta_box_protected', 10, 2 ); function sharing_plugin_settings( $links ) { $settings_link = ''.__( 'Settings', 'jetpack' ).'';