From 644cf1e39277e3085a41dd887fd6fdfe006fc27e Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Sun, 24 Jul 2022 14:07:07 +0200 Subject: [PATCH] add deprecation notices --- inc/deprecated.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/inc/deprecated.php b/inc/deprecated.php index 441033bc..18a1fb37 100644 --- a/inc/deprecated.php +++ b/inc/deprecated.php @@ -18,15 +18,7 @@ if ( ! function_exists( 'understrap_adjust_body_class' ) ) { * @link https://github.com/twbs/bootstrap/issues/20939 */ function understrap_adjust_body_class( $classes ) { - - foreach ( $classes as $key => $value ) { - if ( 'tag' == $value ) { - unset( $classes[ $key ] ); - } - } - - return $classes; - + _deprecated_function( 'understrap_adjust_body_class', '0.9.4' ); } } @@ -39,6 +31,9 @@ if ( ! function_exists( 'understrap_slbd_count_widgets' ) ) { * @deprecated 0.8.9 */ function understrap_slbd_count_widgets( $sidebar_id ) { + + _deprecated_function( 'understrap_slbd_count_widgets', '0.8.9', 'understrap_widget_classes' ); + // If loading from front page, consult $_wp_sidebars_widgets rather than options // to see if wp_convert_widget_settings() has made manipulations in memory. global $_wp_sidebars_widgets;