diff --git a/bibleget-io.php b/bibleget-io.php index 6bc0e6e..e5a6914 100644 --- a/bibleget-io.php +++ b/bibleget-io.php @@ -1,7 +1,7 @@
Effettuate ".$count1." e ".$count2." sostituzioni."; $matches = null; - if (preg_match_all("/
.*?<\/div>/s", $output, $matches)) { + if (preg_match_all("/
.*?<\/div>/s", $output, $matches)) { // capture table of error messages, and turn it into notices for backend $errorshtml = new DOMDocument(); $errorshtml->loadHTML("BibleGet Query Errors" . $matches[0][0] . ""); @@ -1009,7 +1009,7 @@ function bibleGetQueryServer($finalquery) $errs[] = "BIBLEGET SERVER ERROR: " . "" . $errormessage[0]->nodeValue . "(" . bibleGetCurrentPageUrl() . ")." . "
" . "" . __("If this error continues, please notify the BibleGet plugin author at") . ": nodeValue . "\n\nKind regards,\n\n") . "\">bibleget.io@gmail.com" . ""; } } - $output = preg_replace("/
.*?<\/div>/s", '', $output); + $output = preg_replace("/
.*?<\/div>/s", '', $output); } } else { $errs[] = 'BIBLEGET SERVER ERROR: ' . __("There was an error communicating with the BibleGet server, please wait a few minutes and try again", "bibleget-io") . ': '' . curl_error($ch) . '': ' . $finalquery . ''; diff --git a/options.php b/options.php index dfb11d4..716145f 100644 --- a/options.php +++ b/options.php @@ -1833,6 +1833,10 @@ public static function header_output() echo PHP_EOL; echo ".bibleQuote.results p.versesParagraph span.speaker { font-weight: bold; background-color: #eeeeee; padding: 3px; border-radius: 3px; font-size: $fontsize_versenumber; }"; echo PHP_EOL; + echo ".bibleQuote.errors { display: none; }"; + echo PHP_EOL; + echo ".bibleQuote.info { display: none; }"; + echo PHP_EOL; //$bibleversionalign = get_theme_mod('bibleversionalign', 'left'); $bibleversionalign = 'left'; diff --git a/readme.txt b/readme.txt index 03fada2..678506c 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Tags: bible, block, shortcode, quote, citation, verses, bibbia, citazione, verse Requires at least: 5.0 Tested up to: 5.5 Requires PHP: 5.6 -Stable tag: 7.1 +Stable tag: 7.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -136,8 +136,12 @@ There was recently an update to the BibleGet I/O API which slightly changed the == Changelog == += 7.2 = +* Fix: styling of poetic verses in NABRE version +* Fix: error table not hidden to end user + = 7.1 = -* use `POST` requests for the ServerSideRender component if available (Gutenberg 8.8 plugin required) +* Use `POST` requests for the ServerSideRender component if available (Gutenberg 8.8 plugin required) = 7.0 = * Compatibility with WordPress 5.5 @@ -358,6 +362,9 @@ There was recently an update to the BibleGet I/O API which slightly changed the == Upgrade Notice == += 7.2 = +Better styling of poetic verses in NABRE version, fix for error table being shown to end user + = 7.1 = Fixes some possible problems with the Bible quote block by changing the API method from GET to POST. Requires Gutenberg plugin v8.8