Menu Image - Version 3.0.8

Version Description

Download this release

Release Info

Developer takanakui
Plugin Icon 128x128 Menu Image
Version 3.0.8
Comparing to
See all releases

Code changes from version 3.0.7 to 3.0.8

Files changed (2) hide show
  1. menu-image.php +7 -6
  2. readme.txt +4 -3
menu-image.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: Menu Image
5
  * Description: Improve your navigation menu items with images, logos, icons, buttons.
6
- * Version: 3.0.7
7
  * Plugin URI: https://www.freshlightlab.com/menu-image-wordpress-plugin/?utm_source=wprepo-menu-image&utm_medium=wprepo_readme&utm_campaign=Plugin+URI
8
  * Author: Freshlight Lab
9
  * Author URI: https://www.freshlightlab.com/?utm_source=wprepo-menu-image&utm_medium=wprepo_readme&utm_campaign=Author+URI
@@ -15,7 +15,7 @@
15
  if ( !defined( 'ABSPATH' ) ) {
16
  die;
17
  }
18
- define( 'MENU_IMAGE_VERSION', '3.0.7' );
19
  define( 'MENU_IMAGE_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
20
  define( 'MENU_IMAGE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
21
  /**
@@ -635,13 +635,14 @@ class WP_Menu_Image
635
  public function menu_image_save_post_action( $post_id )
636
  {
637
 
638
- if ( !isset( $_POST['menu_item_nonce'] ) || !wp_verify_nonce( $_POST['menu_item_nonce'], 'update-menu-item' ) ) {
639
  ?>
 
640
  <div class="error">
641
- <p><?php
642
- _e( 'Sorry, your nonce was not correct. Please try again.', 'menu-image' );
643
  ?></p>
644
- </div>
645
  <?php
646
  } else {
647
  $menu_image_settings = array(
3
  /**
4
  * Plugin Name: Menu Image
5
  * Description: Improve your navigation menu items with images, logos, icons, buttons.
6
+ * Version: 3.0.8
7
  * Plugin URI: https://www.freshlightlab.com/menu-image-wordpress-plugin/?utm_source=wprepo-menu-image&utm_medium=wprepo_readme&utm_campaign=Plugin+URI
8
  * Author: Freshlight Lab
9
  * Author URI: https://www.freshlightlab.com/?utm_source=wprepo-menu-image&utm_medium=wprepo_readme&utm_campaign=Author+URI
15
  if ( !defined( 'ABSPATH' ) ) {
16
  die;
17
  }
18
+ define( 'MENU_IMAGE_VERSION', '3.0.8' );
19
  define( 'MENU_IMAGE_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
20
  define( 'MENU_IMAGE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
21
  /**
635
  public function menu_image_save_post_action( $post_id )
636
  {
637
 
638
+ if ( !isset( $_POST['menu_item_nonce'] ) || !wp_verify_nonce( $_POST['menu_item_nonce'], 'update-menu-item' ) || !current_user_can( 'manage_options' ) ) {
639
  ?>
640
+
641
  <div class="error">
642
+ <p><?php
643
+ _e( 'Unauthorized Access. Please try again.', 'menu-image' );
644
  ?></p>
645
+ </div>
646
  <?php
647
  } else {
648
  $menu_image_settings = array(
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: takanakui, freshlightlab, freemius
3
  Tags: menu, navigation, image, icons, nav menu
4
  Donate link: https://www.freshlightlab.com/?utm_source=wprepo-menu-image&utm_medium=wprepo_readme&utm_campaign=Donate+Link
5
  Requires at least: 4.4.0
6
- Tested up to: 5.9
7
- Stable tag: 3.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -115,7 +115,8 @@ Check this article in the following [link](https://www.freshlightlab.com/documen
115
 
116
  == Changelog ==
117
 
118
-
 
119
 
120
  ### 3.0.7 ###
121
  * Fix - Security Fix
3
  Tags: menu, navigation, image, icons, nav menu
4
  Donate link: https://www.freshlightlab.com/?utm_source=wprepo-menu-image&utm_medium=wprepo_readme&utm_campaign=Donate+Link
5
  Requires at least: 4.4.0
6
+ Tested up to: 6.0
7
+ Stable tag: 3.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
115
 
116
  == Changelog ==
117
 
118
+ ### 3.0.8 ###
119
+ * Fix - Added new capability check
120
 
121
  ### 3.0.7 ###
122
  * Fix - Security Fix