Skip to content

Commit

Permalink
Consider the third argument of is_protected_meta optional
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk authored Dec 12, 2019
1 parent 3a6fdfa commit c27481d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/sharedaddy/sharedaddy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<a href="options-general.php?page=sharing.php">'.__( 'Settings', 'jetpack' ).'</a>';
Expand Down

0 comments on commit c27481d

Please sign in to comment.