Skip to content

Commit

Permalink
Security fix - v1.4.15
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelgradebot committed Apr 6, 2023
1 parent 8c93d4e commit b8c08c0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
4 changes: 3 additions & 1 deletion callbacks/save_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

function save_pixtypes_settings( $values ){

check_admin_referer( 'pixtypes-save-settings' );

if ( class_exists('wpgrade') ) {
$current_theme = wpgrade::shortname();
} else {
Expand Down Expand Up @@ -136,4 +138,4 @@ function save_pixtypes_settings( $values ){
*/
delete_option('rewrite_rules');

}
}
6 changes: 3 additions & 3 deletions pixtypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* Plugin Name: PixTypes
* Plugin URI: https://wordpress.org/plugins/pixtypes/
* Description: Custom post types and meta-boxes needed by your themes.
* Version: 1.4.14
* Version: 1.4.15
* Author: Pixelgrade
* Author URI: https://pixelgrade.com
* Author Email: contact@pixelgrade.com
* Requires at least: 4.9.9
* Tested up to: 5.7.0
* Tested up to: 5.9
* Text Domain: pixtypes
* License: GPL-2.0 or later.
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Expand Down Expand Up @@ -60,4 +60,4 @@
//register_deactivation_hook( __FILE__, array( 'PixTypesPlugin', 'deactivate' ) );

global $pixtypes_plugin;
$pixtypes_plugin = PixTypesPlugin::get_instance( '1.4.14' );
$pixtypes_plugin = PixTypesPlugin::get_instance( '1.4.15' );
9 changes: 6 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== PixTypes ===
Contributors: pixelgrade, euthelup, babbardel, vlad.olaru, cristianfrumusanu, razvanonofrei
Contributors: pixelgrade, babbardel, vlad.olaru, razvanonofrei
Tags: custom, post-types, metadata, builder, gallery
Requires at least: 4.9.9
Tested up to: 5.7.0
Tested up to: 5.9
Requires PHP: 5.3.0
Stable tag: 1.4.14
Stable tag: 1.4.15
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 1.4.15 =
* Security fix.

= 1.4.14 =
* Improve compatibility with WordPress 5.7.

Expand Down
4 changes: 3 additions & 1 deletion views/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@

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

<?php wp_nonce_field( 'pixtypes-save-settings' ); ?>

<button type="submit" class="button button-primary">
<?php esc_html_e( 'Save Changes', 'pixtypes' ); ?>
</button>
Expand Down Expand Up @@ -94,4 +96,4 @@
</div>
</div>
<?php } ?>
</div>
</div>

0 comments on commit b8c08c0

Please sign in to comment.