Skip to content

Commit b8c08c0

Browse files
committed
Security fix - v1.4.15
1 parent 8c93d4e commit b8c08c0

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

callbacks/save_settings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
function save_pixtypes_settings( $values ){
1111

12+
check_admin_referer( 'pixtypes-save-settings' );
13+
1214
if ( class_exists('wpgrade') ) {
1315
$current_theme = wpgrade::shortname();
1416
} else {
@@ -136,4 +138,4 @@ function save_pixtypes_settings( $values ){
136138
*/
137139
delete_option('rewrite_rules');
138140

139-
}
141+
}

pixtypes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* Plugin Name: PixTypes
44
* Plugin URI: https://wordpress.org/plugins/pixtypes/
55
* Description: Custom post types and meta-boxes needed by your themes.
6-
* Version: 1.4.14
6+
* Version: 1.4.15
77
* Author: Pixelgrade
88
* Author URI: https://pixelgrade.com
99
* Author Email: contact@pixelgrade.com
1010
* Requires at least: 4.9.9
11-
* Tested up to: 5.7.0
11+
* Tested up to: 5.9
1212
* Text Domain: pixtypes
1313
* License: GPL-2.0 or later.
1414
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -60,4 +60,4 @@
6060
//register_deactivation_hook( __FILE__, array( 'PixTypesPlugin', 'deactivate' ) );
6161

6262
global $pixtypes_plugin;
63-
$pixtypes_plugin = PixTypesPlugin::get_instance( '1.4.14' );
63+
$pixtypes_plugin = PixTypesPlugin::get_instance( '1.4.15' );

readme.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
=== PixTypes ===
2-
Contributors: pixelgrade, euthelup, babbardel, vlad.olaru, cristianfrumusanu, razvanonofrei
2+
Contributors: pixelgrade, babbardel, vlad.olaru, razvanonofrei
33
Tags: custom, post-types, metadata, builder, gallery
44
Requires at least: 4.9.9
5-
Tested up to: 5.7.0
5+
Tested up to: 5.9
66
Requires PHP: 5.3.0
7-
Stable tag: 1.4.14
7+
Stable tag: 1.4.15
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -24,6 +24,9 @@ Note: This plugin is addressed to developers, it doesn't do nothing if it isn't
2424

2525
== Changelog ==
2626

27+
= 1.4.15 =
28+
* Security fix.
29+
2730
= 1.4.14 =
2831
* Improve compatibility with WordPress 5.7.
2932

views/admin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353

5454
<?php echo $f->field( 'taxonomies' )->render(); ?>
5555

56+
<?php wp_nonce_field( 'pixtypes-save-settings' ); ?>
57+
5658
<button type="submit" class="button button-primary">
5759
<?php esc_html_e( 'Save Changes', 'pixtypes' ); ?>
5860
</button>
@@ -94,4 +96,4 @@
9496
</div>
9597
</div>
9698
<?php } ?>
97-
</div>
99+
</div>

0 commit comments

Comments
 (0)