Version Description
- 2022-03-29 =
- Fixed missing filter usage for priority. Props for Adam Romanowski.
Download this release
Release Info
Developer | iworks |
Plugin | Orphans |
Version | 2.9.9 |
Comparing to | |
See all releases |
Code changes from version 2.9.8 to 2.9.9
- includes/iworks/class-iworks-orphan.php +4 -3
- languages/sierotki.pot +2 -2
- readme.txt +4 -1
- sierotki.php +1 -1
includes/iworks/class-iworks-orphan.php
CHANGED
@@ -397,17 +397,18 @@ class iworks_orphan {
|
|
397 |
if ( ! array_key_exists( $filter, $allowed_filters ) ) {
|
398 |
continue;
|
399 |
}
|
|
|
400 |
if ( is_integer( $value ) && 1 == $value ) {
|
401 |
if ( 2 === $allowed_filters[ $filter ]['accepted_args'] ) {
|
402 |
-
add_filter( $filter, array( $this, 'replace_two' ),
|
403 |
} else {
|
404 |
-
add_filter( $filter, array( $this, 'replace' ),
|
405 |
}
|
406 |
/**
|
407 |
* WooCommerce exception: short descripton
|
408 |
*/
|
409 |
if ( 'the_excerpt' === $filter ) {
|
410 |
-
add_filter( 'woocommerce_short_description', array( $this, 'replace' ),
|
411 |
}
|
412 |
}
|
413 |
}
|
397 |
if ( ! array_key_exists( $filter, $allowed_filters ) ) {
|
398 |
continue;
|
399 |
}
|
400 |
+
$priority = isset( $allowed_filters[ $filter ]['priority'] ) ? $allowed_filters[ $filter ]['priority'] : PHP_INT_MAX;
|
401 |
if ( is_integer( $value ) && 1 == $value ) {
|
402 |
if ( 2 === $allowed_filters[ $filter ]['accepted_args'] ) {
|
403 |
+
add_filter( $filter, array( $this, 'replace_two' ), $priority, 2 );
|
404 |
} else {
|
405 |
+
add_filter( $filter, array( $this, 'replace' ), $priority );
|
406 |
}
|
407 |
/**
|
408 |
* WooCommerce exception: short descripton
|
409 |
*/
|
410 |
if ( 'the_excerpt' === $filter ) {
|
411 |
+
add_filter( 'woocommerce_short_description', array( $this, 'replace' ), $priority );
|
412 |
}
|
413 |
}
|
414 |
}
|
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-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -248,7 +248,7 @@ msgstr ""
|
|
248 |
msgid "<a href=\"http://iworks.pl/en/\" target=\"_blank\">break the web</a>"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: includes/iworks/class-iworks-orphan.php:
|
252 |
#: includes/iworks/rate/rate.php:118
|
253 |
msgid "Settings"
|
254 |
msgstr ""
|
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-03-29 12:09:26+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
248 |
msgid "<a href=\"http://iworks.pl/en/\" target=\"_blank\">break the web</a>"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: includes/iworks/class-iworks-orphan.php:467
|
252 |
#: includes/iworks/rate/rate.php:118
|
253 |
msgid "Settings"
|
254 |
msgstr ""
|
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 |
|
@@ -128,6 +128,9 @@ function remove_iworks_orphan_terms( $terms ) {
|
|
128 |
|
129 |
== Changelog ==
|
130 |
|
|
|
|
|
|
|
131 |
= 2.9.8 - 2022-02-05 =
|
132 |
* Improved checking is plugin "Advanced Custom Fields" - removed usage of `class_exists` function.
|
133 |
* Moved `load_plugin_textdomain()` function to allow load i18n even plugin is not active.
|
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.9
|
8 |
|
9 |
|
10 |
|
128 |
|
129 |
== Changelog ==
|
130 |
|
131 |
+
= 2.9.9 - 2022-03-29 =
|
132 |
+
* Fixed missing filter usage for priority. Props for [Adam Romanowski](https://wordpress.org/support/users/adamromanowski/).
|
133 |
+
|
134 |
= 2.9.8 - 2022-02-05 =
|
135 |
* Improved checking is plugin "Advanced Custom Fields" - removed usage of `class_exists` function.
|
136 |
* Moved `load_plugin_textdomain()` function to allow load i18n even plugin is not active.
|
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.9
|
9 |
Author URI: http://iworks.pl/
|
10 |
*/
|
11 |
|