Skip to content

Commit

Permalink
push v5.5 with bugfix for cleanup on plugin removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Lwangaman authored and Lwangaman committed May 20, 2020
1 parent 4c23121 commit af7f2aa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
13 changes: 7 additions & 6 deletions bibleget-io.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
* Plugin Name: BibleGet I/O
* Version: 5.4
* Version: 5.5
* Plugin URI: https://www.bibleget.io/
* Description: Easily insert Bible quotes from a choice of Bible versions into your articles or pages with the shortcode [bibleget].
* Author: John Romano D'Orazio
Expand Down Expand Up @@ -29,7 +29,7 @@

//TODO: better ui for the customizer, use sliders

define("BIBLEGETPLUGINVERSION", "v5_4");
define("BIBLEGETPLUGINVERSION", "v5_5");

if (!defined('ABSPATH')) {
header('Status: 403 Forbidden');
Expand Down Expand Up @@ -1375,15 +1375,16 @@ function bibleGetDeleteOptions()
// DELETE BIBLEGET_LANGUAGES CACHED INFO
delete_option("bibleget_languages");

// DELETE BIBLEGET_VERSIONS CACHED INFO
$bibleversions = json_decode(get_option("bibleget_versions"));
delete_option("bibleget_versions");

// DELETE BIBLEGET_VERSIONINDEX CACHED INFO
$bibleversionsabbrev = get_object_vars($bibleversions);
$bibleversionsabbrev = array_keys(get_option("bibleget_versions",array()));
foreach ($bibleversionsabbrev as $abbrev) {
delete_option("bibleget_" . $abbrev . "IDX");
}

// DELETE BIBLEGET_VERSIONS CACHED INFO
delete_option("bibleget_versions");

}


Expand Down
20 changes: 13 additions & 7 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: bible,shortcode,quote,citation,verses,bibbia,citazione,versetti,biblia,cita,versiculos,versets,citation
Requires at least: 3.3
Tested up to: 5.4.1
Stable tag: 5.4
Stable tag: 5.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -83,15 +83,18 @@ If you receive a 504 http status error it means that the connection with the Goo

== Screenshots ==

1. Inserting a Bible quote block into an article or page (Screenshot-1.jpg)
2. Bible quote block: choose Bible version and insert Bible reference (Screenshot-2.jpg)
3. Search results for search verses by keyword(Screenshot-3.jpg)
4. Layout options for Bible version, Book and chapter reference... (Screenshot-4.jpg)
5. Styling options with the WordPress Customizer (Screenshot-5.jpg)
6. Settings page: Google Fonts API key (Screenshot-6.jpg)
1. Inserting a Bible quote block into an article or page (Screenshot-1.png)
2. Bible quote block: choose Bible version and insert Bible reference (Screenshot-2.png)
3. Search results for search verses by keyword(Screenshot-3.png)
4. Layout options for Bible version, Book and chapter reference... (Screenshot-4.png)
5. Styling options with the WordPress Customizer (Screenshot-5.png)
6. Settings page: Google Fonts API key (Screenshot-6.png)

== Changelog ==

= 5.5 =
* Bugfix: fixed a cleanup error on removal of the plugin

= 5.4 =
* created Gutenberg block

Expand Down Expand Up @@ -253,6 +256,9 @@ If you receive a 504 http status error it means that the connection with the Goo

== Upgrade Notice ==

= 5.5 =
Versions prior to 5.1 must be updated. v5.4 adds a Gutenberg block

= 5.4 =
Versions prior to 5.1 must be updated. v5.4 adds a Gutenberg block

Expand Down

0 comments on commit af7f2aa

Please sign in to comment.