Orphans - Version 2.7.6

Version Description

  • 2020-06-08 =

  • Turned off replacements in feeds.

  • Turned off replacements in REST API.

Download this release

Release Info

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

Code changes from version 2.7.5 to 2.7.6

Files changed (4) hide show
  1. languages/sierotki.pot +10 -10
  2. readme.txt +9 -3
  3. sierotki.php +1 -1
  4. vendor/iworks/orphan.php +17 -1
languages/sierotki.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2019 Marcin Pietrzak
2
  # This file is distributed under the same license as the Orphans package.
3
  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: 2019-11-12 11:10:32+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
  "X-Generator: grunt-wp-i18n 0.5.3\n"
@@ -220,35 +220,35 @@ msgstr ""
220
  msgid "ON"
221
  msgstr ""
222
 
223
- #: vendor/iworks/orphan.php:208
224
  msgid "Plugin fix some Polish gramary rules with orphans."
225
  msgstr ""
226
 
227
- #: vendor/iworks/orphan.php:215
228
  msgid "For more information:"
229
  msgstr ""
230
 
231
- #: vendor/iworks/orphan.php:216
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:217
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:218
244
  msgid "<a href=\"http://iworks.pl/en/\" target=\"_blank\">break the web</a>"
245
  msgstr ""
246
 
247
- #: vendor/iworks/orphan.php:321
248
  msgid "Settings"
249
  msgstr ""
250
 
251
- #: vendor/iworks/orphan.php:341
252
  msgid "Donate"
253
  msgstr ""
254
 
1
+ # Copyright (C) 2020 Marcin Pietrzak
2
  # This file is distributed under the same license as the Orphans package.
3
  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"
11
+ "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
  "X-Generator: grunt-wp-i18n 0.5.3\n"
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
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Orphans ===
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
6
- Tested up to: 5.4.0
7
- Stable tag: PLUGIN_VERSION
8
 
9
  Plugin supports some of the grammatical rules of the Polish language.
10
 
@@ -97,6 +97,12 @@ function my_orphans_capability($capability) {
97
 
98
  == Changelog ==
99
 
 
 
 
 
 
 
100
  = 2.7.5 - 2019-11-12 =
101
 
102
  * Fixed default values configuration.
1
  === Orphans ===
2
  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
 
97
 
98
  == Changelog ==
99
 
100
+ = 2.7.6 - 2020-06-08 =
101
+
102
+ * Turned off replacements in feeds.
103
+ * Turned off replacements in REST API.
104
+
105
+
106
  = 2.7.5 - 2019-11-12 =
107
 
108
  * Fixed default values 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.5
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.6
9
  Author URI: http://iworks.pl/
10
  */
11
 
vendor/iworks/orphan.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /*
3
- Copyright 2011-2019 Marcin Pietrzak (marcin@iworks.pl)
4
 
5
  this program is free software; you can redistribute it and/or modify
6
  it under the terms of the GNU General Public License, version 2, as
@@ -77,6 +77,22 @@ class iworks_orphan {
77
  if ( is_admin() ) {
78
  return $content;
79
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  /**
81
  * check post type
82
  */
1
  <?php
2
  /*
3
+ Copyright 2011-2020 Marcin Pietrzak (marcin@iworks.pl)
4
 
5
  this program is free software; you can redistribute it and/or modify
6
  it under the terms of the GNU General Public License, version 2, as
77
  if ( is_admin() ) {
78
  return $content;
79
  }
80
+ /**
81
+ * we do not need this in feed
82
+ *
83
+ * @since 2.7.6
84
+ */
85
+ if ( is_feed() ) {
86
+ return $content;
87
+ }
88
+ /**
89
+ * we do not need this in REST API
90
+ *
91
+ * @since 2.7.6
92
+ */
93
+ if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) {
94
+ return $content;
95
+ }
96
  /**
97
  * check post type
98
  */