Version Description
- Improvement: Hardened the security and accessibility of plugin.
Download this release
Release Info
Developer | brainstormworg |
Plugin | Astra Bulk Edit |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- astra-bulk-edit.php +5 -3
- classes/class-astra-blk-meta-boxes-bulk-edit.php +6 -5
- readme.txt +6 -3
astra-bulk-edit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Astra Bulk Edit
|
4 |
* Plugin URI: http://www.wpastra.com/pro/
|
5 |
* Description: Easier way to edit Astra meta options in bulk.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Domain Path: /languages
|
@@ -19,10 +19,12 @@ if ( 'astra' !== get_template() ) {
|
|
19 |
/**
|
20 |
* Set constants.
|
21 |
*/
|
22 |
-
define( 'ASTRA_BLK_VER', '1.2.
|
23 |
define( 'ASTRA_BLK_FILE', __FILE__ );
|
24 |
define( 'ASTRA_BLK_BASE', plugin_basename( ASTRA_BLK_FILE ) );
|
25 |
define( 'ASTRA_BLK_DIR', plugin_dir_path( ASTRA_BLK_FILE ) );
|
26 |
define( 'ASTRA_BLK_URI', plugins_url( '/', ASTRA_BLK_FILE ) );
|
27 |
|
28 |
-
|
|
|
|
3 |
* Plugin Name: Astra Bulk Edit
|
4 |
* Plugin URI: http://www.wpastra.com/pro/
|
5 |
* Description: Easier way to edit Astra meta options in bulk.
|
6 |
+
* Version: 1.2.5
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Domain Path: /languages
|
19 |
/**
|
20 |
* Set constants.
|
21 |
*/
|
22 |
+
define( 'ASTRA_BLK_VER', '1.2.5' );
|
23 |
define( 'ASTRA_BLK_FILE', __FILE__ );
|
24 |
define( 'ASTRA_BLK_BASE', plugin_basename( ASTRA_BLK_FILE ) );
|
25 |
define( 'ASTRA_BLK_DIR', plugin_dir_path( ASTRA_BLK_FILE ) );
|
26 |
define( 'ASTRA_BLK_URI', plugins_url( '/', ASTRA_BLK_FILE ) );
|
27 |
|
28 |
+
if ( is_admin() ) {
|
29 |
+
require_once ASTRA_BLK_DIR . 'classes/class-astra-blk-meta-boxes-bulk-edit.php';
|
30 |
+
}
|
classes/class-astra-blk-meta-boxes-bulk-edit.php
CHANGED
@@ -183,12 +183,13 @@ if ( ! class_exists( 'Astra_Blk_Meta_Boxes_Bulk_Edit' ) ) {
|
|
183 |
public function save_meta_box( $post_id ) {
|
184 |
|
185 |
// Checks save status.
|
186 |
-
$is_autosave
|
187 |
-
$is_revision
|
188 |
-
$is_valid_nonce
|
|
|
189 |
|
190 |
// Exits script depending on save status.
|
191 |
-
if ( $is_autosave || $is_revision || ! $is_valid_nonce ) {
|
192 |
return;
|
193 |
}
|
194 |
|
@@ -322,7 +323,7 @@ if ( ! class_exists( 'Astra_Blk_Meta_Boxes_Bulk_Edit' ) ) {
|
|
322 |
|
323 |
$default_value = '';
|
324 |
|
325 |
-
$html .= '<div class="astra-bulk-edit-field-' . $post_id . '" data-name="' . $key . '" id="' . $key . '-' . $post_id . '">';
|
326 |
|
327 |
if ( isset( $meta[ $key ]['default'] ) ) {
|
328 |
$default_value = $meta[ $key ]['default'];
|
183 |
public function save_meta_box( $post_id ) {
|
184 |
|
185 |
// Checks save status.
|
186 |
+
$is_autosave = wp_is_post_autosave( $post_id );
|
187 |
+
$is_revision = wp_is_post_revision( $post_id );
|
188 |
+
$is_valid_nonce = ( isset( $_POST['astra_settings_bulk_meta_box'] ) && wp_verify_nonce( $_POST['astra_settings_bulk_meta_box'], basename( __FILE__ ) ) ) ? true : false;
|
189 |
+
$user_capability = ( current_user_can( 'edit_post', $post_id ) );
|
190 |
|
191 |
// Exits script depending on save status.
|
192 |
+
if ( $is_autosave || $is_revision || ! $is_valid_nonce || ! $user_capability ) {
|
193 |
return;
|
194 |
}
|
195 |
|
323 |
|
324 |
$default_value = '';
|
325 |
|
326 |
+
$html .= '<div class="astra-bulk-edit-field-' . esc_attr( $post_id ) . '" data-name="' . esc_attr( $key ) . '" id="' . esc_attr( $key . '-' . $post_id ) . '">';
|
327 |
|
328 |
if ( isset( $meta[ $key ]['default'] ) ) {
|
329 |
$default_value = $meta[ $key ]['default'];
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: brainstormforce
|
|
3 |
Donate link: https://www.paypal.me/BrainstormForce
|
4 |
Tags: bulk edit Astra meta settings, Astra meta settings, meta settings bulk edit, wordpress bulk edit plugin, page bulk edit, post bulk edit
|
5 |
Requires at least: 4.4
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.2.
|
8 |
Requires PHP: 5.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -61,12 +61,15 @@ Astra Bulk Edit plugin can be used only with the Astra theme.
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
64 |
= 1.2.4 =
|
65 |
- Fix: Undefined astra_get_option function call when Astra theme is inactive.
|
66 |
- Fix: White label settings does not get applied for the theme name.
|
67 |
|
68 |
= 1.2.3 =
|
69 |
-
- Improvement: Hardened the security of plugin
|
70 |
- Improvement: Compatibility with latest WordPress PHP_CodeSniffer rules
|
71 |
|
72 |
= 1.2.2 =
|
3 |
Donate link: https://www.paypal.me/BrainstormForce
|
4 |
Tags: bulk edit Astra meta settings, Astra meta settings, meta settings bulk edit, wordpress bulk edit plugin, page bulk edit, post bulk edit
|
5 |
Requires at least: 4.4
|
6 |
+
Tested up to: 5.6
|
7 |
+
Stable tag: 1.2.5
|
8 |
Requires PHP: 5.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.2.5 =
|
65 |
+
- Improvement: Hardened the security and accessibility of plugin.
|
66 |
+
|
67 |
= 1.2.4 =
|
68 |
- Fix: Undefined astra_get_option function call when Astra theme is inactive.
|
69 |
- Fix: White label settings does not get applied for the theme name.
|
70 |
|
71 |
= 1.2.3 =
|
72 |
+
- Improvement: Hardened the security of plugin.
|
73 |
- Improvement: Compatibility with latest WordPress PHP_CodeSniffer rules
|
74 |
|
75 |
= 1.2.2 =
|