Skip to content

Commit

Permalink
Add deprecation notice to print helper function
Browse files Browse the repository at this point in the history
Technically this was deprecated in 2.0.0, but without a notice. May go
ahead and delete as it would only be called if settings had never been
updated after updating to 2.0.
  • Loading branch information
robincornett committed May 4, 2019
1 parent 54e7d15 commit 4e6bb23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/helper-functions.php
Expand Up @@ -45,6 +45,7 @@ function scriptlesssocialsharing_print_buttons( $content ) {
if ( ! $setting['location'] ) {
return $content;
}
_deprecated_function( __FUNCTION__, '2.0.0' );
$post_type = get_post_type();
if ( ! isset( $setting['post_types'][ $post_type ] ) || ! $setting['post_types'][ $post_type ] || is_array( $setting['post_types'][ $post_type ] ) ) {
return $content;
Expand Down

0 comments on commit 4e6bb23

Please sign in to comment.