Version Description
- 2022-09-02 =
- Handle ACF integration if it is network activated plugin. Props for maczek6000.
- Changed iWorks Rate Module repository to GitHub.
- Updated iWorks Rate to 2.1.1.
Download this release
Release Info
Developer | iworks |
Plugin | Orphans |
Version | 3.0.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.0.3
- etc/options.php +13 -0
- includes/iworks/class-iworks-orphan.php +1 -1
- includes/iworks/rate/iworks-logo.svg +1 -54
- includes/iworks/rate/rate.php +6 -6
- languages/sierotki.pot +8 -8
- readme.txt +7 -2
- sierotki.php +1 -1
etc/options.php
CHANGED
@@ -275,6 +275,19 @@ function orphang_indicator_options() {
|
|
275 |
function iworks_orphan_options_check_available_integrations() {
|
276 |
$integrations = array();
|
277 |
$plugins = get_option( 'active_plugins' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
if ( empty( $plugins ) ) {
|
279 |
return $integrations;
|
280 |
}
|
275 |
function iworks_orphan_options_check_available_integrations() {
|
276 |
$integrations = array();
|
277 |
$plugins = get_option( 'active_plugins' );
|
278 |
+
/**
|
279 |
+
* check multisite network wide plugins.
|
280 |
+
*
|
281 |
+
* @since 3.0.3
|
282 |
+
*/
|
283 |
+
if ( is_multisite() ) {
|
284 |
+
$network_plugins = array_flip( get_site_option( 'active_sitewide_plugins' ) );
|
285 |
+
$plugins = array_merge( $plugins, $network_plugins );
|
286 |
+
$plugins = array_unique( $plugins );
|
287 |
+
}
|
288 |
+
/**
|
289 |
+
* no plugins
|
290 |
+
*/
|
291 |
if ( empty( $plugins ) ) {
|
292 |
return $integrations;
|
293 |
}
|
includes/iworks/class-iworks-orphan.php
CHANGED
@@ -48,7 +48,7 @@ class iworks_orphan {
|
|
48 |
*
|
49 |
* @since 3.0.0
|
50 |
*/
|
51 |
-
private $version = '3.0.
|
52 |
|
53 |
public function __construct() {
|
54 |
/**
|
48 |
*
|
49 |
* @since 3.0.0
|
50 |
*/
|
51 |
+
private $version = '3.0.3';
|
52 |
|
53 |
public function __construct() {
|
54 |
/**
|
includes/iworks/rate/iworks-logo.svg
CHANGED
@@ -1,54 +1 @@
|
|
1 |
-
|
2 |
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
3 |
-
|
4 |
-
<svg
|
5 |
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
6 |
-
xmlns:cc="http://creativecommons.org/ns#"
|
7 |
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
8 |
-
xmlns:svg="http://www.w3.org/2000/svg"
|
9 |
-
xmlns="http://www.w3.org/2000/svg"
|
10 |
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
11 |
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
12 |
-
id="svg3248"
|
13 |
-
version="1.1"
|
14 |
-
inkscape:version="0.48.5 r10040"
|
15 |
-
width="500"
|
16 |
-
height="500"
|
17 |
-
xml:space="preserve"
|
18 |
-
sodipodi:docname="iworks-logo.svg"><metadata
|
19 |
-
id="metadata3254"><rdf:RDF><cc:Work
|
20 |
-
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
21 |
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
22 |
-
id="defs3252"><clipPath
|
23 |
-
clipPathUnits="userSpaceOnUse"
|
24 |
-
id="clipPath3262"><path
|
25 |
-
d="m 0,841.89 595.276,0 L 595.276,0 0,0 0,841.89 z"
|
26 |
-
id="path3264"
|
27 |
-
inkscape:connector-curvature="0" /></clipPath></defs><sodipodi:namedview
|
28 |
-
pagecolor="#ffffff"
|
29 |
-
bordercolor="#666666"
|
30 |
-
borderopacity="1"
|
31 |
-
objecttolerance="10"
|
32 |
-
gridtolerance="10"
|
33 |
-
guidetolerance="10"
|
34 |
-
inkscape:pageopacity="0"
|
35 |
-
inkscape:pageshadow="2"
|
36 |
-
inkscape:window-width="1920"
|
37 |
-
inkscape:window-height="1180"
|
38 |
-
id="namedview3250"
|
39 |
-
showgrid="false"
|
40 |
-
inkscape:zoom="1"
|
41 |
-
inkscape:cx="250"
|
42 |
-
inkscape:cy="126.17999"
|
43 |
-
inkscape:window-x="-3"
|
44 |
-
inkscape:window-y="-3"
|
45 |
-
inkscape:window-maximized="1"
|
46 |
-
inkscape:current-layer="g3256" /><g
|
47 |
-
id="g3256"
|
48 |
-
inkscape:groupmode="layer"
|
49 |
-
inkscape:label="logo-cs3"
|
50 |
-
transform="matrix(1.25,0,0,-1.25,0,500.00001)"><path
|
51 |
-
inkscape:connector-curvature="0"
|
52 |
-
id="path3268"
|
53 |
-
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
54 |
-
d="m 173.36094,93.52233 c -73.473446,0 -133.118753,59.62718 -133.118753,133.11473 0,25.93002 7.569723,49.93237 20.414886,70.40567 -2.110981,-6.35309 -3.20273,-13.15537 -3.20273,-20.21547 0,-36.39027 29.440945,-65.91783 65.833227,-65.91783 36.354,0 65.86746,29.52756 65.86746,65.91783 0,36.32782 -29.51346,65.84934 -65.86746,65.84934 -7.06011,0 -13.86641,-1.1542 -20.12483,-3.20475 20.37863,12.76862 44.39709,20.27792 70.1982,20.27792 73.47345,0 133.11875,-59.62517 133.11875,-133.11271 0,-73.48755 -59.6453,-133.11473 -133.11875,-133.11473 M 60.403272,113.67737 22.774216,76.06443 C 61.313734,37.555127 114.55358,13.677667 173.36094,13.677667 c 117.58048,0 212.9614,95.376893 212.9614,212.959393 0,58.78923 -23.87343,112.06332 -62.37467,150.57061 l -37.70158,-37.61093 0.0725,-0.0625 c -28.93133,28.94543 -68.85265,46.78806 -112.95767,46.78806 -88.175789,0 -159.683283,-71.49943 -159.683283,-159.68529 0,-44.02848 17.830545,-83.9498 46.725615,-112.83279 l 0,-0.1269 z" /></g></svg>
|
1 |
+
<svg width="500" height="500" xmlns="http://www.w3.org/2000/svg"><path fill="#231f20" d="m 216.7,383.1 c -91.8,0 -166.4,-74.5 -166.4,-166.4 0,-32.4 9.5,-62.4 25.5,-88.0 -2.6,7.9 -4.0,16.4 -4.0,25.3 0,45.5 36.8,82.4 82.3,82.4 45.4,0 82.3,-36.9 82.3,-82.4 0,-45.4 -36.9,-82.3 -82.3,-82.3 -8.8,0 -17.3,1.4 -25.2,4.0 25.5,-16 55.5,-25.3 87.7,-25 91.8,0 166.4,74.5 166.4,166.4 0,91.9 -74.6,166.4 -166.4,166.4 M 75.5,357.9 28.5,404.9 c 48.2,48.1 114.7,78 188.2,78 147,0 266.2,-119.2 266.2,-266.2 0,-73.5 -29.8,-140.1 -78,-188.2 l -47.1,47.0 0.1,0.1 c -36.2,-36.2 -86.1,-58.5 -141.2,-58.5 -110.2,0 -199.6,89.4 -199.6,199.6 0,55.0 22.3,104.9 58.4,141 v 0.2 z" /></svg>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/iworks/rate/rate.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* iWorks_Rate - Dashboard Notification module.
|
4 |
*
|
5 |
-
* @version 2.1.
|
6 |
* @author iworks (Marcin Pietrzak)
|
7 |
*
|
8 |
*/
|
@@ -15,7 +15,7 @@ if ( ! class_exists( 'iworks_rate' ) ) {
|
|
15 |
* @since 1.0.1
|
16 |
* @var string
|
17 |
*/
|
18 |
-
private $version = '2.1.
|
19 |
|
20 |
/**
|
21 |
* $wpdb->options field name.
|
@@ -223,14 +223,14 @@ if ( ! class_exists( 'iworks_rate' ) ) {
|
|
223 |
* @since 1.0.0
|
224 |
*/
|
225 |
public function ajax_button() {
|
226 |
-
$plugin_id = filter_input( INPUT_POST, 'plugin_id',
|
227 |
if ( empty( $plugin_id ) ) {
|
228 |
wp_send_json_error();
|
229 |
}
|
230 |
if ( ! isset( $this->plugins[ $plugin_id ] ) ) {
|
231 |
wp_send_json_error();
|
232 |
}
|
233 |
-
switch ( filter_input( INPUT_POST, 'button',
|
234 |
case '':
|
235 |
case 'add-review':
|
236 |
$this->add_weeks( $plugin_id );
|
@@ -258,7 +258,7 @@ if ( ! class_exists( 'iworks_rate' ) ) {
|
|
258 |
if ( ! isset( $this->stored[ $plugin_id ] ) ) {
|
259 |
return;
|
260 |
}
|
261 |
-
$this->stored[ $plugin_id ]['show_at'] = time() + rand(
|
262 |
$this->store_data();
|
263 |
}
|
264 |
|
@@ -266,7 +266,7 @@ if ( ! class_exists( 'iworks_rate' ) ) {
|
|
266 |
if ( ! isset( $this->stored[ $plugin_id ] ) ) {
|
267 |
return;
|
268 |
}
|
269 |
-
$this->stored[ $plugin_id ]['show_at'] = time() + rand(
|
270 |
$this->store_data();
|
271 |
}
|
272 |
|
2 |
/**
|
3 |
* iWorks_Rate - Dashboard Notification module.
|
4 |
*
|
5 |
+
* @version 2.1.1
|
6 |
* @author iworks (Marcin Pietrzak)
|
7 |
*
|
8 |
*/
|
15 |
* @since 1.0.1
|
16 |
* @var string
|
17 |
*/
|
18 |
+
private $version = '2.1.1';
|
19 |
|
20 |
/**
|
21 |
* $wpdb->options field name.
|
223 |
* @since 1.0.0
|
224 |
*/
|
225 |
public function ajax_button() {
|
226 |
+
$plugin_id = filter_input( INPUT_POST, 'plugin_id', FILTER_DEFAULT );
|
227 |
if ( empty( $plugin_id ) ) {
|
228 |
wp_send_json_error();
|
229 |
}
|
230 |
if ( ! isset( $this->plugins[ $plugin_id ] ) ) {
|
231 |
wp_send_json_error();
|
232 |
}
|
233 |
+
switch ( filter_input( INPUT_POST, 'button', FILTER_DEFAULT ) ) {
|
234 |
case '':
|
235 |
case 'add-review':
|
236 |
$this->add_weeks( $plugin_id );
|
258 |
if ( ! isset( $this->stored[ $plugin_id ] ) ) {
|
259 |
return;
|
260 |
}
|
261 |
+
$this->stored[ $plugin_id ]['show_at'] = time() + rand( 4, 6 ) * WEEK_IN_SECONDS + rand( 0, 7 ) * DAY_IN_SECONDS;
|
262 |
$this->store_data();
|
263 |
}
|
264 |
|
266 |
if ( ! isset( $this->stored[ $plugin_id ] ) ) {
|
267 |
return;
|
268 |
}
|
269 |
+
$this->stored[ $plugin_id ]['show_at'] = time() + rand( 15, 30 ) * WEEK_IN_SECONDS + rand( 0, 14 ) * DAY_IN_SECONDS;
|
270 |
$this->store_data();
|
271 |
}
|
272 |
|
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"
|
@@ -176,7 +176,7 @@ msgstr ""
|
|
176 |
msgid "Use a comma to separate custom fields name."
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: etc/options.php:213 etc/options.php:
|
180 |
msgid "We are waiting for your message"
|
181 |
msgstr ""
|
182 |
|
@@ -216,19 +216,19 @@ msgstr ""
|
|
216 |
msgid "Enabled the substitution of orphans in WYSIWYG fields."
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: etc/options.php:
|
220 |
msgid "Below are some links to help spread this plugin to other users"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: etc/options.php:
|
224 |
msgid "Give it a five stars on WordPress.org"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: etc/options.php:
|
228 |
msgid "Link to it so others can easily find it"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: etc/options.php:
|
232 |
msgid "WordPress Help Forum"
|
233 |
msgstr ""
|
234 |
|
@@ -390,12 +390,12 @@ msgstr ""
|
|
390 |
msgid "http://iworks.pl/"
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: etc/options.php:
|
394 |
msgctxt "plugin home page on WordPress.org"
|
395 |
msgid "https://wordpress.org/plugins/sierotki/"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: etc/options.php:
|
399 |
msgctxt "link to support forum on WordPress.org"
|
400 |
msgid "https://wordpress.org/support/plugin/sierotki/"
|
401 |
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-09-02 05:57:29+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
176 |
msgid "Use a comma to separate custom fields name."
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: etc/options.php:213 etc/options.php:350
|
180 |
msgid "We are waiting for your message"
|
181 |
msgstr ""
|
182 |
|
216 |
msgid "Enabled the substitution of orphans in WYSIWYG fields."
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: etc/options.php:314
|
220 |
msgid "Below are some links to help spread this plugin to other users"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: etc/options.php:316
|
224 |
msgid "Give it a five stars on WordPress.org"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: etc/options.php:317
|
228 |
msgid "Link to it so others can easily find it"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: etc/options.php:352
|
232 |
msgid "WordPress Help Forum"
|
233 |
msgstr ""
|
234 |
|
390 |
msgid "http://iworks.pl/"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: etc/options.php:317
|
394 |
msgctxt "plugin home page on WordPress.org"
|
395 |
msgid "https://wordpress.org/plugins/sierotki/"
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: etc/options.php:352
|
399 |
msgctxt "link to support forum on WordPress.org"
|
400 |
msgid "https://wordpress.org/support/plugin/sierotki/"
|
401 |
msgstr ""
|
readme.txt
CHANGED
@@ -4,9 +4,9 @@ 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: 6.0
|
7 |
-
Stable tag: 3.0.
|
8 |
-
|
9 |
|
|
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -128,6 +128,11 @@ function remove_iworks_orphan_terms( $terms ) {
|
|
128 |
|
129 |
== Changelog ==
|
130 |
|
|
|
|
|
|
|
|
|
|
|
131 |
= 3.0.2 - 2022-08-06 =
|
132 |
* Added integration with "WPBakery Page Builder" on `vc_shortcode_output` filter.
|
133 |
|
4 |
Tags: sierotka, sierotki, spójniki, twarda spacja
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 3.0.3
|
|
|
8 |
|
9 |
+
Plugin supports some of the grammatical rules of the Polish language.
|
10 |
|
11 |
== Description ==
|
12 |
|
128 |
|
129 |
== Changelog ==
|
130 |
|
131 |
+
= 3.0.3 - 2022-09-02 =
|
132 |
+
* Handle ACF integration if it is network activated plugin. Props for [maczek6000](https://profiles.wordpress.org/maczek6000/).
|
133 |
+
* Changed iWorks Rate Module repository to GitHub.
|
134 |
+
* Updated iWorks Rate to 2.1.1.
|
135 |
+
|
136 |
= 3.0.2 - 2022-08-06 =
|
137 |
* Added integration with "WPBakery Page Builder" on `vc_shortcode_output` filter.
|
138 |
|
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: 3.0.
|
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: 3.0.3
|
9 |
Author URI: http://iworks.pl/
|
10 |
*/
|
11 |
|