Orphans - Version 2.7.7

Version Description

  • 2020-06-20 =
  • Added orphan_skip_replacement filter to force skip replacements. Check FAQ to know how to use it.
Download this release

Release Info

Developer iworks
Plugin Icon 128x128 Orphans
Version 2.7.7
Comparing to
See all releases

Code changes from version 2.7.6 to 2.7.7

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: 2020-06-08 10:36:04+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -220,35 +220,35 @@ msgstr ""
220
  msgid "ON"
221
  msgstr ""
222
 
223
- #: vendor/iworks/orphan.php:224
224
  msgid "Plugin fix some Polish gramary rules with orphans."
225
  msgstr ""
226
 
227
- #: vendor/iworks/orphan.php:231
228
  msgid "For more information:"
229
  msgstr ""
230
 
231
- #: vendor/iworks/orphan.php:232
232
  msgid ""
233
  "<a href=\"http://wordpress.org/extend/plugins/sierotki/\" "
234
  "target=\"_blank\">Plugin Homepage</a>"
235
  msgstr ""
236
 
237
- #: vendor/iworks/orphan.php:233
238
  msgid ""
239
  "<a href=\"http://wordpress.org/support/plugin/sierotki/\" "
240
  "target=\"_blank\">Support Forums</a>"
241
  msgstr ""
242
 
243
- #: vendor/iworks/orphan.php:234
244
  msgid "<a href=\"http://iworks.pl/en/\" target=\"_blank\">break the web</a>"
245
  msgstr ""
246
 
247
- #: vendor/iworks/orphan.php:337
248
  msgid "Settings"
249
  msgstr ""
250
 
251
- #: vendor/iworks/orphan.php:357
252
  msgid "Donate"
253
  msgstr ""
254
 
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: 2020-06-20 13:19:24+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
220
  msgid "ON"
221
  msgstr ""
222
 
223
+ #: vendor/iworks/orphan.php:232
224
  msgid "Plugin fix some Polish gramary rules with orphans."
225
  msgstr ""
226
 
227
+ #: vendor/iworks/orphan.php:239
228
  msgid "For more information:"
229
  msgstr ""
230
 
231
+ #: vendor/iworks/orphan.php:240
232
  msgid ""
233
  "<a href=\"http://wordpress.org/extend/plugins/sierotki/\" "
234
  "target=\"_blank\">Plugin Homepage</a>"
235
  msgstr ""
236
 
237
+ #: vendor/iworks/orphan.php:241
238
  msgid ""
239
  "<a href=\"http://wordpress.org/support/plugin/sierotki/\" "
240
  "target=\"_blank\">Support Forums</a>"
241
  msgstr ""
242
 
243
+ #: vendor/iworks/orphan.php:242
244
  msgid "<a href=\"http://iworks.pl/en/\" target=\"_blank\">break the web</a>"
245
  msgstr ""
246
 
247
+ #: vendor/iworks/orphan.php:345
248
  msgid "Settings"
249
  msgstr ""
250
 
251
+ #: vendor/iworks/orphan.php:365
252
  msgid "Donate"
253
  msgstr ""
254
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: iworks
3
  Donate link: https://ko-fi.com/iworks?utm_source=sierotki&utm_medium=readme-donate
4
  Tags: sierotka, sierotki, spójniki, twarda spacja
5
  Requires at least: 3.6
6
- Tested up to: 5.4
7
- Stable tag: 2.7.6
8
 
9
  Plugin supports some of the grammatical rules of the Polish language.
10
 
@@ -88,6 +88,18 @@ function my_orphans_capability($capability) {
88
  return 'unfiltered_html';
89
  }
90
  `
 
 
 
 
 
 
 
 
 
 
 
 
91
  == Screenshots ==
92
 
93
  1. Options for entries.
@@ -97,6 +109,9 @@ function my_orphans_capability($capability) {
97
 
98
  == Changelog ==
99
 
 
 
 
100
  = 2.7.6 - 2020-06-08 =
101
 
102
  * Turned off replacements in feeds.
3
  Donate link: https://ko-fi.com/iworks?utm_source=sierotki&utm_medium=readme-donate
4
  Tags: sierotka, sierotki, spójniki, twarda spacja
5
  Requires at least: 3.6
6
+ Tested up to: 5.6
7
+ Stable tag: 2.7.7
8
 
9
  Plugin supports some of the grammatical rules of the Polish language.
10
 
88
  return 'unfiltered_html';
89
  }
90
  `
91
+
92
+ = How to turn of replacement in my piece of code? =
93
+
94
+ At the beginning of your block just add:
95
+ `
96
+ add_filter( 'orphan_skip_replacement', '__return_true' );
97
+ `
98
+ and at the end, to again turn on replacements:
99
+ `
100
+ remove_filter( 'orphan_skip_replacement', '__return_true' );
101
+ `
102
+
103
  == Screenshots ==
104
 
105
  1. Options for entries.
109
 
110
  == Changelog ==
111
 
112
+ = 2.7.7 - 2020-06-20 =
113
+ * Added `orphan_skip_replacement` filter to force skip replacements. Check FAQ to know how to use it.
114
+
115
  = 2.7.6 - 2020-06-08 =
116
 
117
  * Turned off replacements in feeds.
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.6
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.7
9
  Author URI: http://iworks.pl/
10
  */
11
 
vendor/iworks/orphan.php CHANGED
@@ -65,6 +65,14 @@ class iworks_orphan {
65
  }
66
 
67
  public function replace( $content ) {
 
 
 
 
 
 
 
 
68
  /**
69
  * do not replace empty content
70
  */
65
  }
66
 
67
  public function replace( $content ) {
68
+ /**
69
+ * Filter to allow skip replacement.
70
+ *
71
+ * @since 2.7.7
72
+ */
73
+ if ( apply_filters( 'orphan_skip_replacement', false ) ) {
74
+ return $content;
75
+ }
76
  /**
77
  * do not replace empty content
78
  */