Version Description
2017-09-08 =
Fixed a problem with array handling, when document contains scripts or styles.
Download this release
Release Info
| Developer | iworks |
| Plugin | |
| Version | 2.7.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.7.0 to 2.7.1
- languages/sierotki.pot +1 -1
- readme.txt +7 -3
- sierotki.php +1 -1
- vendor/iworks/orphan.php +2 -2
languages/sierotki.pot
CHANGED
|
@@ -4,7 +4,7 @@ msgid ""
|
|
| 4 |
msgstr ""
|
| 5 |
"Project-Id-Version: Orphans PLUGIN_VERSION\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sierotki\n"
|
| 7 |
-
"POT-Creation-Date: 2017-
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 4 |
msgstr ""
|
| 5 |
"Project-Id-Version: Orphans PLUGIN_VERSION\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sierotki\n"
|
| 7 |
+
"POT-Creation-Date: 2017-09-08 21:14:41+00:00\n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
Contributors: iworks
|
| 3 |
Donate link: http://iworks.pl/donate/sierotki.php
|
| 4 |
Tags: sierotka, sierotki, spójniki, twarda spacja
|
| 5 |
-
Requires at least: 3
|
| 6 |
-
Tested up to: 4.
|
| 7 |
-
Stable tag: 2.7.
|
| 8 |
|
| 9 |
Plugin supports some of the grammatical rules of the Polish language.
|
| 10 |
|
|
@@ -97,6 +97,10 @@ function my_orphans_capability($capability) {
|
|
| 97 |
|
| 98 |
== Changelog ==
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
= 2.7.0 - 2017-06-29 =
|
| 101 |
|
| 102 |
* Added custom fields - now you can easily add custom field name to the configuration.
|
| 2 |
Contributors: iworks
|
| 3 |
Donate link: http://iworks.pl/donate/sierotki.php
|
| 4 |
Tags: sierotka, sierotki, spójniki, twarda spacja
|
| 5 |
+
Requires at least: 4.3
|
| 6 |
+
Tested up to: 4.9
|
| 7 |
+
Stable tag: 2.7.1
|
| 8 |
|
| 9 |
Plugin supports some of the grammatical rules of the Polish language.
|
| 10 |
|
| 97 |
|
| 98 |
== Changelog ==
|
| 99 |
|
| 100 |
+
= 2.7.1 - 2017-09-08 =
|
| 101 |
+
|
| 102 |
+
* Fixed a problem with array handling, when document contains scripts or styles.
|
| 103 |
+
|
| 104 |
= 2.7.0 - 2017-06-29 =
|
| 105 |
|
| 106 |
* Added custom fields - now you can easily add custom field name to the configuration.
|
sierotki.php
CHANGED
|
@@ -5,7 +5,7 @@ Plugin URI: http://iworks.pl/2011/02/16/sierotki/
|
|
| 5 |
Text Domain: sierotki
|
| 6 |
Description: Implement Polish grammar rules with orphans.
|
| 7 |
Author: Marcin Pietrzak
|
| 8 |
-
Version: 2.7.
|
| 9 |
Author URI: http://iworks.pl/
|
| 10 |
*/
|
| 11 |
|
| 5 |
Text Domain: sierotki
|
| 6 |
Description: Implement Polish grammar rules with orphans.
|
| 7 |
Author: Marcin Pietrzak
|
| 8 |
+
Version: 2.7.1
|
| 9 |
Author URI: http://iworks.pl/
|
| 10 |
*/
|
| 11 |
|
vendor/iworks/orphan.php
CHANGED
|
@@ -247,7 +247,7 @@ class iworks_orphan
|
|
| 247 |
);
|
| 248 |
|
| 249 |
preg_match_all( '@(<(script|style)[^>]*>.*?(</(script|style)>))@is', $content, $matches );
|
| 250 |
-
$exceptions =
|
| 251 |
|
| 252 |
if ( ! empty( $matches ) && ! empty( $matches[0] ) ) {
|
| 253 |
$salt = 'kQc6T9fn5GhEzTM3Sxn7b9TWMV4PO0mOCV06Da7AQJzSJqxYR4z3qBlsW9rtFsWK';
|
|
@@ -288,7 +288,7 @@ class iworks_orphan
|
|
| 288 |
/**
|
| 289 |
* bring back styles & scripts
|
| 290 |
*/
|
| 291 |
-
if ( ! empty( $exceptions ) ) {
|
| 292 |
foreach ( $exceptions as $key => $one ) {
|
| 293 |
$re = sprintf( '/%s/', $key );
|
| 294 |
$content = preg_replace( $re, $one, $content );
|
| 247 |
);
|
| 248 |
|
| 249 |
preg_match_all( '@(<(script|style)[^>]*>.*?(</(script|style)>))@is', $content, $matches );
|
| 250 |
+
$exceptions = array();
|
| 251 |
|
| 252 |
if ( ! empty( $matches ) && ! empty( $matches[0] ) ) {
|
| 253 |
$salt = 'kQc6T9fn5GhEzTM3Sxn7b9TWMV4PO0mOCV06Da7AQJzSJqxYR4z3qBlsW9rtFsWK';
|
| 288 |
/**
|
| 289 |
* bring back styles & scripts
|
| 290 |
*/
|
| 291 |
+
if ( ! empty( $exceptions ) && is_array( $exceptions ) ) {
|
| 292 |
foreach ( $exceptions as $key => $one ) {
|
| 293 |
$re = sprintf( '/%s/', $key );
|
| 294 |
$content = preg_replace( $re, $one, $content );
|
