From 01a6ab1a659d2f66355ae902262b4a9d36090a69 Mon Sep 17 00:00:00 2001 From: Patrick Fung Date: Wed, 4 Mar 2020 13:46:09 -0500 Subject: [PATCH] fix undefined variable --- rl-collapsible-section.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rl-collapsible-section.php b/rl-collapsible-section.php index 8ffd19a..26ba75e 100644 --- a/rl-collapsible-section.php +++ b/rl-collapsible-section.php @@ -7,7 +7,7 @@ * Author URI: https://github.com/ryersonlibrary * Description: Adds the [rl_collapsible_section] shortcode to WordPress. * GitHub Plugin URI: https://github.com/ryersonlibrary/rl-collapsible-section - * Version: 0.1.9 + * Version: 0.1.10 */ // Include our custom settings page for the plugin @@ -72,7 +72,7 @@ function rl_collapsible_section_shortcode($atts = [], $content = null) { add_shortcode('rl_collapsible_section', 'rl_collapsible_section_shortcode'); // [rl_collapsible_section_toggle_button] shortcode -function rl_collapsible_section_toggle_button_shortcode() { +function rl_collapsible_section_toggle_button_shortcode($atts = []) { // normalize attribute keys, lowercase $atts = array_change_key_case((array)$atts, CASE_LOWER);