Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Commit e8c1de4

Browse files
committed
Hotfixes for version 2.4.2
1 parent fac9e32 commit e8c1de4

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
### 2.4.2
4+
- Fix critical bug which caused posts without an ordered list to lose the first paragraph and indent strangely.
5+
- Fix typo on one of the CSS selectors on the options page. `.abt-smart-bib` => `#abt-smart-bib`
6+
7+
**Note:** I am aware of the issue with Internet Explorer browsers not generating tooltips. This is because IE operates using a very, very, very....very outdated broswer standard. I'll work on a fix soon and push that out when I get it working. Thanks!
8+
9+
If you'd like to follow along or join the conversation on some of the next few milestones of this plugin, please see [this excellent thread](https://github.com/dsifford/academic-bloggers-toolkit/issues/20) started by @metallikat36.
10+
11+
312
### 2.4.1
413
- Fix bug that caused tooltips to not render at all on Firefox browsers (and Internet Explorer?) - If IE still has issues, please let me know. I don't own a Windows PC so I can't test.
514
- Fix bug that caused the menu icon to display as a smiley face on new posts and pages.

academic-bloggers-toolkit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: Academic Blogger's Toolkit
55
* Plugin URI: https://wordpress.org/plugins/academic-bloggers-toolkit/
66
* Description: A plugin extending the functionality of Wordpress for academic blogging
7-
* Version: 2.4.1
7+
* Version: 2.4.2
88
* Author: Derek P Sifford
99
* Author URI: https://github.com/dsifford
1010
* License: GPL3 or later

inc/options-page-wrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<div style="padding: 10px; flex-grow: 1; flex-shrink: 0;">
7070
<h4>Apply style to the bibliography list?</h4>
7171
<div style="font-family: monospace; background: #eaeaea; padding: 5px; white-space: pre-line;"
72-
>.abt-smart-bib {
72+
>#abt-smart-bib {
7373
&nbsp;&nbsp;vertical-align: super;
7474
&nbsp;&nbsp;font-size: 0.8em;
7575
&nbsp;&nbsp;list-style-type: upper-roman;

inc/peer-review.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ function tag_ordered_list( $content ) {
230230
if (!$smart_bib_exists) {
231231

232232
$lastOLPosition = strrpos($content, '<ol');
233+
if (!$lastOLPosition) {
234+
return $content;
235+
}
236+
233237
$content = substr($content, 0, $lastOLPosition) . '<ol id="abt-smart-bib" ' . substr($content, $lastOLPosition+3, strlen($content));
234238

235239
}

readme.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://cash.me/$dsifford
44
Tags: academic, pmid, doi, peer-review, pubmed, citation, bibliography, reference
55
Requires at least: 4.2.2
66
Tested up to: 4.5
7-
Stable tag: 2.4.1
7+
Stable tag: 2.4.2
88
License: GPL3 or later
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -48,6 +48,14 @@ Yikes! I'm sorry about that. Please report all issues on the Academic Blogger's
4848

4949
== Changelog ==
5050

51+
= 2.4.2 =
52+
* Fix critical bug which caused posts without an ordered list to lose the first paragraph and indent strangely.
53+
* Fix typo on one of the CSS selectors on the options page. `.abt-smart-bib` => `#abt-smart-bib`
54+
55+
**Note:** I am aware of the issue with Internet Explorer browsers not generating tooltips. This is because IE operates using a very, very, very....very outdated broswer standard. I'll work on a fix soon and push that out when I get it working. Thanks!
56+
57+
If you'd like to follow along or join the conversation on some of the next few milestones of this plugin, please see [this excellent thread](https://github.com/dsifford/academic-bloggers-toolkit/issues/20) started by @metallikat36.
58+
5159
= 2.4.1 =
5260
* Fix bug that caused tooltips to not render at all on Firefox browsers (and Internet Explorer?) - If IE still has issues, please let me know. I don't own a Windows PC so I can't test.
5361
* Fix bug that caused the menu icon to display as a smiley face on new posts and pages.

0 commit comments

Comments
 (0)