Skip to content

Commit

Permalink
Merge pull request #2 from HeyGovApp/shortcode-twice-fix
Browse files Browse the repository at this point in the history
Shortcode display twice fix
  • Loading branch information
AndreiIgna authored Jul 18, 2022
2 parents cb5a6f9 + 1d7f774 commit 6b6f6c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion heygov.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: HeyGov
Plugin URI: https://heygov.com
Description: Manage the HeyGov widget on your municipality WordPress website
Version: 1.5.0
Version: 1.5.1
Requires at least: 5.0
Requires PHP: 7.0
Author: HeyGov
Expand Down
4 changes: 2 additions & 2 deletions includes/class/heygov-resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function heygov_forms_shortcode( $atts = array()) {
// generate forms HTML
ob_start();

require_once HEYGOV_DIR . 'includes/view/show-heygov-muni-forms.php';
require HEYGOV_DIR . 'includes/view/show-heygov-muni-forms.php';

$forms = ob_get_contents();
ob_end_clean();
Expand Down Expand Up @@ -123,7 +123,7 @@ public function heygov_venue_shortcode( $atts = array()) {
// generate forms HTML
ob_start();

require_once HEYGOV_DIR . 'includes/view/show-venue.php';
require HEYGOV_DIR . 'includes/view/show-venue.php';

$html = ob_get_contents();
ob_end_clean();
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ This plugin streamlines the installation for the HeyGov widget on your WordPress

== Changelog ==

= 1.5.1 =
* Fixed - Display shortcode twice on same page

= 1.5.0 =
* Added - Shortcode to display venue availability

Expand Down

0 comments on commit 6b6f6c1

Please sign in to comment.