From fe7881f7c89b912a0eabeb8fed4e005a6fc0698e Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Mon, 11 Dec 2023 12:10:16 +0100 Subject: [PATCH] Documentation fixes --- crouton.php | 6 +++--- partials/_instructions.php | 23 ++++++----------------- readme.txt | 7 ++++--- 3 files changed, 13 insertions(+), 23 deletions(-) diff --git a/crouton.php b/crouton.php index c498b97..f653c27 100644 --- a/crouton.php +++ b/crouton.php @@ -151,7 +151,7 @@ public function __construct() &$this, "croutonMap" )); - add_shortcode('meeting_map', array( + add_shortcode('bmlt_map', array( &$this, "meetingMap" )); @@ -182,7 +182,7 @@ private function hasShortcode() { $post_to_check = get_post(get_the_ID()); $post_content = $post_to_check->post_content ?? ''; - $tags = ['bmlt_tabs', 'meeting_map', 'crouton_map', 'bmlt_count', 'meeting_count', 'group_count', 'service_body_names', 'bmlt_handlebar']; + $tags = ['bmlt_tabs', 'bmlt_map', 'crouton_map', 'bmlt_count', 'meeting_count', 'group_count', 'service_body_names', 'bmlt_handlebar']; preg_match_all('/' . get_shortcode_regex($tags) . '/', $post_content, $matches, PREG_SET_ORDER); if (empty($matches)) { return false; @@ -204,7 +204,7 @@ private function hasShortcode() } if ($shortcode[2] === 'bmlt_handlebar' || $shortcode[2] === 'crouton_map' || - $shortcode[2] === 'meeting_map') { + $shortcode[2] === 'bmlt_map') { $this->hasMap = true; } } diff --git a/partials/_instructions.php b/partials/_instructions.php index 1975f00..aebb50e 100644 --- a/partials/_instructions.php +++ b/partials/_instructions.php @@ -5,7 +5,8 @@

Crouton defines the following shortcodes.