Skip to content

Commit

Permalink
Replace deprecated function usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lushkant committed Mar 23, 2023
1 parent 9543e16 commit 8262a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shortcodes/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ function stag_tabs( $atts, $content = null ) {
$output = '';

if ( count( $tab_titles ) ) {
$output .= '<section id="stag-tabs-' . rand( 1, 100 ) . '" class="stag-section stag-tabs stag-tabs--' . esc_attr( $args['style'] ) . '"><div class="stag-tab-inner">';
$output .= '<section id="stag-tabs-' . wp_rand( 1, 100 ) . '" class="stag-section stag-tabs stag-tabs--' . esc_attr( $args['style'] ) . '"><div class="stag-tab-inner">';
$output .= '<ul class="stag-nav stag-clearfix">';

foreach ( $tab_titles as $tab ) {
Expand Down Expand Up @@ -490,7 +490,7 @@ function stag_map( $atts ) {
'subtle_grayscale' => '[{"featureType":"landscape","stylers":[{"saturation":-100},{"lightness":65},{"visibility":"on"}]},{"featureType":"poi","stylers":[{"saturation":-100},{"lightness":51},{"visibility":"simplified"}]},{"featureType":"road.highway","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"road.arterial","stylers":[{"saturation":-100},{"lightness":30},{"visibility":"on"}]},{"featureType":"road.local","stylers":[{"saturation":-100},{"lightness":40},{"visibility":"on"}]},{"featureType":"transit","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"administrative.province","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"visibility":"on"},{"lightness":-25},{"saturation":-100}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffff00"},{"lightness":-25},{"saturation":-97}]}]',
);

$map_id = 'map-' . rand( 0, 99 );
$map_id = 'map-' . wp_rand( 0, 99 );

$stag_options = get_option( 'stag_options' );
$api_key = ( isset( $stag_options['google_api_key'] ) ) ? $stag_options['google_api_key'] : '';
Expand Down

0 comments on commit 8262a00

Please sign in to comment.