Version Description
- 2022-02-02 =
- Fixed missing replacements before and after any tag. Props for gierand.
Download this release
Release Info
| Developer | iworks |
| Plugin | |
| Version | 2.9.5 |
| Comparing to | |
| See all releases | |
Code changes from version 2.9.4 to 2.9.5
- includes/iworks/class-iworks-orphan.php +2 -3
- languages/sierotki.pot +15 -15
- readme.txt +6 -1
- sierotki.php +1 -1
includes/iworks/class-iworks-orphan.php
CHANGED
|
@@ -251,15 +251,14 @@ class iworks_orphan {
|
|
| 251 |
*/
|
| 252 |
$terms = $this->_terms();
|
| 253 |
$terms_terms = array_chunk( $terms, 10 );
|
| 254 |
-
|
| 255 |
/**
|
| 256 |
* avoid to replace tags contnt
|
| 257 |
*
|
| 258 |
* @since 2.9.4
|
| 259 |
*/
|
| 260 |
$content_array = array( $content );
|
| 261 |
-
if ( preg_match( '/</', $content )
|
| 262 |
-
$content_array =
|
| 263 |
}
|
| 264 |
foreach ( $content_array as $part_source ) {
|
| 265 |
$part_to_change = $part_source;
|
| 251 |
*/
|
| 252 |
$terms = $this->_terms();
|
| 253 |
$terms_terms = array_chunk( $terms, 10 );
|
|
|
|
| 254 |
/**
|
| 255 |
* avoid to replace tags contnt
|
| 256 |
*
|
| 257 |
* @since 2.9.4
|
| 258 |
*/
|
| 259 |
$content_array = array( $content );
|
| 260 |
+
if ( preg_match( '/</', $content ) ) {
|
| 261 |
+
$content_array = preg_split( '/<[^>]+>/', $content );
|
| 262 |
}
|
| 263 |
foreach ( $content_array as $part_source ) {
|
| 264 |
$part_to_change = $part_source;
|
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-dev\n"
|
| 7 |
-
"POT-Creation-Date: 2022-02-02
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -192,64 +192,64 @@ msgstr ""
|
|
| 192 |
msgid "WordPress Help Forum"
|
| 193 |
msgstr ""
|
| 194 |
|
| 195 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 196 |
msgid "Plugin fix some Polish gramary rules with orphans."
|
| 197 |
msgstr ""
|
| 198 |
|
| 199 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 200 |
msgid "For more information:"
|
| 201 |
msgstr ""
|
| 202 |
|
| 203 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 204 |
msgid ""
|
| 205 |
"<a href=\"http://wordpress.org/extend/plugins/sierotki/\" "
|
| 206 |
"target=\"_blank\">Plugin Homepage</a>"
|
| 207 |
msgstr ""
|
| 208 |
|
| 209 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 210 |
msgid ""
|
| 211 |
"<a href=\"http://wordpress.org/support/plugin/sierotki/\" "
|
| 212 |
"target=\"_blank\">Support Forums</a>"
|
| 213 |
msgstr ""
|
| 214 |
|
| 215 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 216 |
msgid "<a href=\"http://iworks.pl/en/\" target=\"_blank\">break the web</a>"
|
| 217 |
msgstr ""
|
| 218 |
|
| 219 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 220 |
#: includes/iworks/rate/rate.php:118
|
| 221 |
msgid "Settings"
|
| 222 |
msgstr ""
|
| 223 |
|
| 224 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 225 |
msgid "Integrations"
|
| 226 |
msgstr ""
|
| 227 |
|
| 228 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 229 |
msgid "Advanced Custom Fields"
|
| 230 |
msgstr ""
|
| 231 |
|
| 232 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 233 |
msgid "Text"
|
| 234 |
msgstr ""
|
| 235 |
|
| 236 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 237 |
msgid "Enabled the substitution of orphans in text fields."
|
| 238 |
msgstr ""
|
| 239 |
|
| 240 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 241 |
msgid "Textarea"
|
| 242 |
msgstr ""
|
| 243 |
|
| 244 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 245 |
msgid "Enabled the substitution of orphans in textarea fields. (Include WYSIWYG)."
|
| 246 |
msgstr ""
|
| 247 |
|
| 248 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 249 |
msgid "WYSIWYG"
|
| 250 |
msgstr ""
|
| 251 |
|
| 252 |
-
#: includes/iworks/class-iworks-orphan.php:
|
| 253 |
msgid "Enabled the substitution of orphans in WYSIWYG fields."
|
| 254 |
msgstr ""
|
| 255 |
|
| 4 |
msgstr ""
|
| 5 |
"Project-Id-Version: Orphans PLUGIN_VERSION\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sierotki-dev\n"
|
| 7 |
+
"POT-Creation-Date: 2022-02-02 16:54:03+00:00\n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 192 |
msgid "WordPress Help Forum"
|
| 193 |
msgstr ""
|
| 194 |
|
| 195 |
+
#: includes/iworks/class-iworks-orphan.php:318
|
| 196 |
msgid "Plugin fix some Polish gramary rules with orphans."
|
| 197 |
msgstr ""
|
| 198 |
|
| 199 |
+
#: includes/iworks/class-iworks-orphan.php:325
|
| 200 |
msgid "For more information:"
|
| 201 |
msgstr ""
|
| 202 |
|
| 203 |
+
#: includes/iworks/class-iworks-orphan.php:326
|
| 204 |
msgid ""
|
| 205 |
"<a href=\"http://wordpress.org/extend/plugins/sierotki/\" "
|
| 206 |
"target=\"_blank\">Plugin Homepage</a>"
|
| 207 |
msgstr ""
|
| 208 |
|
| 209 |
+
#: includes/iworks/class-iworks-orphan.php:327
|
| 210 |
msgid ""
|
| 211 |
"<a href=\"http://wordpress.org/support/plugin/sierotki/\" "
|
| 212 |
"target=\"_blank\">Support Forums</a>"
|
| 213 |
msgstr ""
|
| 214 |
|
| 215 |
+
#: includes/iworks/class-iworks-orphan.php:328
|
| 216 |
msgid "<a href=\"http://iworks.pl/en/\" target=\"_blank\">break the web</a>"
|
| 217 |
msgstr ""
|
| 218 |
|
| 219 |
+
#: includes/iworks/class-iworks-orphan.php:485
|
| 220 |
#: includes/iworks/rate/rate.php:118
|
| 221 |
msgid "Settings"
|
| 222 |
msgstr ""
|
| 223 |
|
| 224 |
+
#: includes/iworks/class-iworks-orphan.php:635
|
| 225 |
msgid "Integrations"
|
| 226 |
msgstr ""
|
| 227 |
|
| 228 |
+
#: includes/iworks/class-iworks-orphan.php:651
|
| 229 |
msgid "Advanced Custom Fields"
|
| 230 |
msgstr ""
|
| 231 |
|
| 232 |
+
#: includes/iworks/class-iworks-orphan.php:656
|
| 233 |
msgid "Text"
|
| 234 |
msgstr ""
|
| 235 |
|
| 236 |
+
#: includes/iworks/class-iworks-orphan.php:657
|
| 237 |
msgid "Enabled the substitution of orphans in text fields."
|
| 238 |
msgstr ""
|
| 239 |
|
| 240 |
+
#: includes/iworks/class-iworks-orphan.php:665
|
| 241 |
msgid "Textarea"
|
| 242 |
msgstr ""
|
| 243 |
|
| 244 |
+
#: includes/iworks/class-iworks-orphan.php:666
|
| 245 |
msgid "Enabled the substitution of orphans in textarea fields. (Include WYSIWYG)."
|
| 246 |
msgstr ""
|
| 247 |
|
| 248 |
+
#: includes/iworks/class-iworks-orphan.php:674
|
| 249 |
msgid "WYSIWYG"
|
| 250 |
msgstr ""
|
| 251 |
|
| 252 |
+
#: includes/iworks/class-iworks-orphan.php:675
|
| 253 |
msgid "Enabled the substitution of orphans in WYSIWYG fields."
|
| 254 |
msgstr ""
|
| 255 |
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://ko-fi.com/iworks?utm_source=sierotki&utm_medium=readme-dona
|
|
| 4 |
Tags: sierotka, sierotki, spójniki, twarda spacja
|
| 5 |
Requires at least: 4.6
|
| 6 |
Tested up to: 5.9
|
| 7 |
-
Stable tag: 2.9.
|
| 8 |
|
| 9 |
|
| 10 |
|
|
@@ -12,6 +12,8 @@ Stable tag: 2.9.4
|
|
| 12 |
|
| 13 |
Plugin fix orphans position and replace space after orphan to hard space, to avoid line break incorrect position.
|
| 14 |
|
|
|
|
|
|
|
| 15 |
= Asset image =
|
| 16 |
|
| 17 |
[Manuscript by Muffet, on Flickr](http://www.flickr.com/photos/calliope/306564541/)
|
|
@@ -126,6 +128,9 @@ function remove_iworks_orphan_terms( $terms ) {
|
|
| 126 |
|
| 127 |
== Changelog ==
|
| 128 |
|
|
|
|
|
|
|
|
|
|
| 129 |
= 2.9.4 - 2022-02-02 =
|
| 130 |
* Added ability to turn off replacements on menu title elements. New option is in "Miscellaneous" tab.
|
| 131 |
* Added `orphan_allowed_filters` to add ability to change allowed filters.
|
| 4 |
Tags: sierotka, sierotki, spójniki, twarda spacja
|
| 5 |
Requires at least: 4.6
|
| 6 |
Tested up to: 5.9
|
| 7 |
+
Stable tag: 2.9.5
|
| 8 |
|
| 9 |
|
| 10 |
|
| 12 |
|
| 13 |
Plugin fix orphans position and replace space after orphan to hard space, to avoid line break incorrect position.
|
| 14 |
|
| 15 |
+
**Orphan** - a text composition error, which consists in leaving a lonely short word at the end or at the beginning of a verse, especially a single-character one. The word "lonely" here means separation from a closely related word by line breaks.
|
| 16 |
+
|
| 17 |
= Asset image =
|
| 18 |
|
| 19 |
[Manuscript by Muffet, on Flickr](http://www.flickr.com/photos/calliope/306564541/)
|
| 128 |
|
| 129 |
== Changelog ==
|
| 130 |
|
| 131 |
+
= 2.9.5 - 2022-02-02 =
|
| 132 |
+
* Fixed missing replacements before and after any tag. Props for [gierand](https://wordpress.org/support/users/gierand/).
|
| 133 |
+
|
| 134 |
= 2.9.4 - 2022-02-02 =
|
| 135 |
* Added ability to turn off replacements on menu title elements. New option is in "Miscellaneous" tab.
|
| 136 |
* Added `orphan_allowed_filters` to add ability to change allowed filters.
|
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.9.
|
| 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.9.5
|
| 9 |
Author URI: http://iworks.pl/
|
| 10 |
*/
|
| 11 |
|
