Orphans - Version 2.6.9

Version Description

  • 2017-05-24 =

  • Fixed a problem with class declaration. Props for gierand

Download this release

Release Info

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

Code changes from version 2.6.8 to 2.6.9

Files changed (4) hide show
  1. etc/options.php +3 -3
  2. readme.txt +11 -11
  3. sierotki.php +2 -2
  4. vendor/iworks/orphan.php +2 -1
etc/options.php CHANGED
@@ -31,7 +31,7 @@ function orphang_indicator_options() {
31
  ),
32
  array(
33
  'name' => 'the_title',
34
- 'th' => __( 'Title:', 'sierotki' ),
35
  'type' => 'checkbox',
36
  'description' => __( 'Enabled the substitution of orphans in the post_title.', 'sierotki' ),
37
  'sanitize_callback' => 'absint',
@@ -153,7 +153,7 @@ function orphang_indicator_options() {
153
  ),
154
  array(
155
  'name' => 'numbers',
156
- 'th' => __( 'Keep numbers together:', 'sierotki' ),
157
  'type' => 'checkbox',
158
  'description' => __( 'Allow to keep together phone number or strings with space between numbers.', 'sierotki' ),
159
  'sanitize_callback' => 'absint',
@@ -161,7 +161,7 @@ function orphang_indicator_options() {
161
  ),
162
  array(
163
  'name' => 'own_orphans',
164
- 'th' => __( 'User definied orphans:', 'sierotki' ),
165
  'type' => 'textarea',
166
  'description' => __( 'Use a comma to separate orphans.', 'sierotki' ),
167
  'sanitize_callback' => 'esc_html',
31
  ),
32
  array(
33
  'name' => 'the_title',
34
+ 'th' => __( 'Title', 'sierotki' ),
35
  'type' => 'checkbox',
36
  'description' => __( 'Enabled the substitution of orphans in the post_title.', 'sierotki' ),
37
  'sanitize_callback' => 'absint',
153
  ),
154
  array(
155
  'name' => 'numbers',
156
+ 'th' => __( 'Keep numbers together', 'sierotki' ),
157
  'type' => 'checkbox',
158
  'description' => __( 'Allow to keep together phone number or strings with space between numbers.', 'sierotki' ),
159
  'sanitize_callback' => 'absint',
161
  ),
162
  array(
163
  'name' => 'own_orphans',
164
+ 'th' => __( 'User definied orphans', 'sierotki' ),
165
  'type' => 'textarea',
166
  'description' => __( 'Use a comma to separate orphans.', 'sierotki' ),
167
  'sanitize_callback' => 'esc_html',
readme.txt CHANGED
@@ -2,9 +2,9 @@
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.5
6
  Tested up to: 4.7.5
7
- Stable tag: 2.6.8
8
 
9
  Plugin supports some of the grammatical rules of the Polish language.
10
 
@@ -76,15 +76,11 @@ echo $orphan->replace( 'any_string' );
76
 
77
  = How to change plugin capability? =
78
 
79
- By default to use this plugin you must have `manage_options` capability,
80
- that usually mean site administrator. If you want to allow manage
81
- Orphans by "Editors" then you need to use other capability, e.g.
82
- `unfiltered_html`. You can use `iworks_orphans_capability` filter:
83
 
84
  `
85
  add_filter('iworks_orphans_capability', 'my_orphans_capability');
86
- function my_orphans_capability($capability)
87
- {
88
  return 'unfiltered_html';
89
  }
90
  `
@@ -95,12 +91,16 @@ function my_orphans_capability($capability)
95
 
96
  == Changelog ==
97
 
 
 
 
 
98
  = 2.6.8 - 2017-05-23 =
99
 
100
- * Use [WordPress Options Class](https://github.com/iworks/wordpress-options-class) to handle new options screen.
101
- * Added a taxonomies title and description to replacements.
102
  * Added author description to replacements.
 
103
  * Fixed a problem with preg_replace() "Compilation failed: range out of order".
 
104
 
105
  = 2.6.7 - 2017-05-09 =
106
 
@@ -113,7 +113,7 @@ function my_orphans_capability($capability)
113
 
114
  = 2.6.6 - 2017-04-30 =
115
 
116
- * Avoid to replace "script" and "styles" content. Props for @m1nified
117
  * Added a widget title to replacements.
118
  * Added a widget text to replacements (it work only for the widget text).
119
 
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: 4.7.5
7
+ Stable tag: 2.6.9
8
 
9
  Plugin supports some of the grammatical rules of the Polish language.
10
 
76
 
77
  = How to change plugin capability? =
78
 
79
+ By default to use this plugin you must have `manage_options` capability, that usually mean site administrator. If you want to allow manage Orphans by "Editors" then you need to use other capability, e.g. `unfiltered_html`. You can use `iworks_orphans_capability` filter:
 
 
 
80
 
81
  `
82
  add_filter('iworks_orphans_capability', 'my_orphans_capability');
83
+ function my_orphans_capability($capability) {
 
84
  return 'unfiltered_html';
85
  }
86
  `
91
 
92
  == Changelog ==
93
 
94
+ = 2.6.9 - 2017-05-24 =
95
+
96
+ * Fixed a problem with class declaration. Props for [gierand](https://wordpress.org/support/users/gierand/)
97
+
98
  = 2.6.8 - 2017-05-23 =
99
 
 
 
100
  * Added author description to replacements.
101
+ * Added a taxonomies title and description to replacements.
102
  * Fixed a problem with preg_replace() "Compilation failed: range out of order".
103
+ * Use [WordPress Options Class](https://github.com/iworks/wordpress-options-class) to handle new options screen.
104
 
105
  = 2.6.7 - 2017-05-09 =
106
 
113
 
114
  = 2.6.6 - 2017-04-30 =
115
 
116
+ * Avoid to replace "script" and "styles" content. Props for [m1nified](https://profiles.wordpress.org/m1nified/)
117
  * Added a widget title to replacements.
118
  * Added a widget text to replacements (it work only for the widget text).
119
 
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.6.8
9
  Author URI: http://iworks.pl/
10
  */
11
 
@@ -25,7 +25,7 @@ if ( ! class_exists( 'iworks_options' ) ) {
25
  include_once $vendor.'/iworks/options/options.php';
26
  }
27
 
28
- new iworks_orphan( __FILE__ );
29
 
30
  register_activation_hook( __FILE__, 'iworks_orphan_activate' );
31
  register_deactivation_hook( __FILE__, 'iworks_orphan_deactivate' );
5
  Text Domain: sierotki
6
  Description: Implement Polish grammar rules with orphans.
7
  Author: Marcin Pietrzak
8
+ Version: 2.6.9
9
  Author URI: http://iworks.pl/
10
  */
11
 
25
  include_once $vendor.'/iworks/options/options.php';
26
  }
27
 
28
+ new iworks_orphan();
29
 
30
  register_activation_hook( __FILE__, 'iworks_orphan_activate' );
31
  register_deactivation_hook( __FILE__, 'iworks_orphan_deactivate' );
vendor/iworks/orphan.php CHANGED
@@ -25,7 +25,8 @@ class iworks_orphan
25
  private $settings;
26
  private $plugin_file;
27
 
28
- public function __construct( $file ) {
 
29
  /**
30
  * plugin ID
31
  */
25
  private $settings;
26
  private $plugin_file;
27
 
28
+ public function __construct() {
29
+ $file = dirname( dirname( dirname( __FILE__ ) ) ).'/sierotki.php';
30
  /**
31
  * plugin ID
32
  */