Version Description
- Strict standards - fix for arrays with default values
Download this release
Release Info
Developer | mbis |
Plugin | Permalink Manager Lite |
Version | 0.4.7 |
Comparing to | |
See all releases |
Code changes from version 0.4.6 to 0.4.7
- README.txt +8 -5
- inc/permalink-manager-base-editor.php +7 -0
- inc/permalink-manager-editor.php +7 -0
- permalink-manager.php +4 -4
README.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== Permalink Manager ===
|
2 |
Contributors: mbis
|
|
|
|
|
3 |
Tags: urls, permalinks, slugs, custom url, custom permalinks, uris, url, slug, permalink
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.6
|
6 |
-
Stable tag: 0.4.
|
7 |
-
License: GPLv2 or later
|
8 |
-
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
Permalink Manager allows you to control how the permalinks for custom post types are created & regenerate them.
|
11 |
|
@@ -82,7 +82,10 @@ After the plugin is installed you can access its dashboard from this page: `Tool
|
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
-
= 0.4.
|
|
|
|
|
|
|
86 |
* 302 redirect fix.
|
87 |
* Code optimization.
|
88 |
|
1 |
=== Permalink Manager ===
|
2 |
Contributors: mbis
|
3 |
+
License: GPLv3
|
4 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
5 |
Tags: urls, permalinks, slugs, custom url, custom permalinks, uris, url, slug, permalink
|
6 |
Requires at least: 4.0
|
7 |
+
Tested up to: 4.6.1
|
8 |
+
Stable tag: 0.4.7
|
|
|
|
|
9 |
|
10 |
Permalink Manager allows you to control how the permalinks for custom post types are created & regenerate them.
|
11 |
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 0.4.7 =
|
86 |
+
* Strict standards - fix for arrays with default values
|
87 |
+
|
88 |
+
= 0.4.6 =
|
89 |
* 302 redirect fix.
|
90 |
* Code optimization.
|
91 |
|
inc/permalink-manager-base-editor.php
CHANGED
@@ -136,6 +136,13 @@ class Permalink_Manager_Base_Editor extends WP_List_Table {
|
|
136 |
$this->_column_headers = array($columns, $hidden, $sortable);
|
137 |
$this->items = $sliced_data;
|
138 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
|
140 |
}
|
141 |
?>
|
136 |
$this->_column_headers = array($columns, $hidden, $sortable);
|
137 |
$this->items = $sliced_data;
|
138 |
}
|
139 |
+
|
140 |
+
/**
|
141 |
+
* This variable is assigned in permalink-manager.php before prepare_items() function is triggered, see permalinks_table_html() function
|
142 |
+
*/
|
143 |
+
public function set_screen_option_fields($fields) {
|
144 |
+
$this->screen_options_fields = $fields;
|
145 |
+
}
|
146 |
|
147 |
}
|
148 |
?>
|
inc/permalink-manager-editor.php
CHANGED
@@ -165,6 +165,13 @@ class Permalink_Manager_Editor extends WP_List_Table {
|
|
165 |
$this->_column_headers = array($columns, $hidden, $sortable);
|
166 |
$this->items = $data;
|
167 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
|
169 |
}
|
170 |
?>
|
165 |
$this->_column_headers = array($columns, $hidden, $sortable);
|
166 |
$this->items = $data;
|
167 |
}
|
168 |
+
|
169 |
+
/**
|
170 |
+
* This variable is assigned in permalink-manager.php before prepare_items() function is triggered, see permalinks_table_html() function
|
171 |
+
*/
|
172 |
+
public function set_screen_option_fields($fields) {
|
173 |
+
$this->screen_options_fields = $fields;
|
174 |
+
}
|
175 |
|
176 |
}
|
177 |
?>
|
permalink-manager.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Permalink Manager
|
5 |
* Plugin URI: http://maciejbis.net/
|
6 |
* Description: A simple tool that allows to mass update of slugs that are used to build permalinks for Posts, Pages and Custom Post Types.
|
7 |
-
* Version: 0.4.
|
8 |
* Author: Maciej Bis
|
9 |
* Author URI: http://maciejbis.net/
|
10 |
* License: GPL-2.0+
|
@@ -20,7 +20,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
20 |
|
21 |
// Define the directories used to load plugin files.
|
22 |
define( 'PERMALINK_MANAGER_PLUGIN_NAME', 'permalink-manager' );
|
23 |
-
define( 'PERMALINK_MANAGER_VERSION', '0.4.
|
24 |
define( 'PERMALINK_MANAGER_DIR', untrailingslashit( dirname( __FILE__ ) ) );
|
25 |
define( 'PERMALINK_MANAGER_URL', untrailingslashit( plugins_url( '', __FILE__ ) ) );
|
26 |
define( 'PERMALINK_MANAGER_WEBSITE', 'http://maciejbis.net' );
|
@@ -106,8 +106,8 @@ class Permalink_Manager_Class {
|
|
106 |
$button = get_submit_button( __( 'Find & Replace Slugs', 'permalink-manager' ), 'primary', 'find-replace-button', false );
|
107 |
|
108 |
$return = "<form id=\"permalinks-table-find-replace\" method=\"post\">";
|
109 |
-
|
110 |
-
|
111 |
|
112 |
foreach($this->fields_arrays('find_and_replace') as $field_name => $field_args) {
|
113 |
$return .= Permalink_Manager_Helper_Functions::generate_option_field($field_name, $field_args, 'find-replace');
|
4 |
* Plugin Name: Permalink Manager
|
5 |
* Plugin URI: http://maciejbis.net/
|
6 |
* Description: A simple tool that allows to mass update of slugs that are used to build permalinks for Posts, Pages and Custom Post Types.
|
7 |
+
* Version: 0.4.7
|
8 |
* Author: Maciej Bis
|
9 |
* Author URI: http://maciejbis.net/
|
10 |
* License: GPL-2.0+
|
20 |
|
21 |
// Define the directories used to load plugin files.
|
22 |
define( 'PERMALINK_MANAGER_PLUGIN_NAME', 'permalink-manager' );
|
23 |
+
define( 'PERMALINK_MANAGER_VERSION', '0.4.7' );
|
24 |
define( 'PERMALINK_MANAGER_DIR', untrailingslashit( dirname( __FILE__ ) ) );
|
25 |
define( 'PERMALINK_MANAGER_URL', untrailingslashit( plugins_url( '', __FILE__ ) ) );
|
26 |
define( 'PERMALINK_MANAGER_WEBSITE', 'http://maciejbis.net' );
|
106 |
$button = get_submit_button( __( 'Find & Replace Slugs', 'permalink-manager' ), 'primary', 'find-replace-button', false );
|
107 |
|
108 |
$return = "<form id=\"permalinks-table-find-replace\" method=\"post\">";
|
109 |
+
$return .= "<input type=\"hidden\" name=\"tab\" value=\"find_and_replace\" />";
|
110 |
+
$return .= "<table class=\"form-table\">";
|
111 |
|
112 |
foreach($this->fields_arrays('find_and_replace') as $field_name => $field_args) {
|
113 |
$return .= Permalink_Manager_Helper_Functions::generate_option_field($field_name, $field_args, 'find-replace');
|