Google Maps CP - Version 1.0.44

Version Description

  • Improves the plugin security.
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Google Maps CP
Version 1.0.44
Comparing to
See all releases

Code changes from version 1.0.43 to 1.0.44

codepeople-post-map.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Google Maps CP
4
  Text Domain: codepeople-post-map
5
- Version: 1.0.43
6
  Author: CodePeople
7
  Author URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
8
  Plugin URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
2
  /*
3
  Plugin Name: Google Maps CP
4
  Text Domain: codepeople-post-map
5
+ Version: 1.0.44
6
  Author: CodePeople
7
  Author URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
8
  Plugin URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
feedback/cp-feedback.php CHANGED
@@ -51,8 +51,12 @@ if(!class_exists('CP_FEEDBACK'))
51
  // This function is used only if explicitly accepted (opt-in) by the user
52
  public function feedback_action()
53
  {
54
- if(isset($_POST['feedback_plugin']) && $_POST['feedback_plugin'] == $this->plugin_slug)
55
- {
 
 
 
 
56
  $plugin_data = get_plugin_data( $this->plugin_file );
57
  $plugin_version = $plugin_data['Version'];
58
  $time = time() - get_option('installed_'.$this->plugin_slug, 0);
51
  // This function is used only if explicitly accepted (opt-in) by the user
52
  public function feedback_action()
53
  {
54
+ if(
55
+ isset($_POST['feedback_plugin']) &&
56
+ $_POST['feedback_plugin'] == $this->plugin_slug &&
57
+ isset( $_POST['_wpnonce'] ) &&
58
+ wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'cp-google-maps-feedback' )
59
+ ) {
60
  $plugin_data = get_plugin_data( $this->plugin_file );
61
  $plugin_version = $plugin_data['Version'];
62
  $time = time() - get_option('installed_'.$this->plugin_slug, 0);
feedback/feedback.html CHANGED
@@ -6,6 +6,7 @@
6
  </style>
7
  <h3><strong>If you have a moment, please let us know why you are deactivating:</strong></h3>
8
  <form id="cp_feedback_form{{plugin_slug}}">
 
9
  <div class="cp-feedback-reason-block">
10
  <label>
11
  <input type="radio" name="answer" value="cpm-no-map">
6
  </style>
7
  <h3><strong>If you have a moment, please let us know why you are deactivating:</strong></h3>
8
  <form id="cp_feedback_form{{plugin_slug}}">
9
+ <?php wp_nonce_field( 'cp-google-maps-feedback', '_wpnonce' ); ?>
10
  <div class="cp-feedback-reason-block">
11
  <label>
12
  <input type="radio" name="answer" value="cpm-no-map">
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: codepeople
3
  Donate link: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
4
  Tags:google maps,maps,marker,gmap,places,shortcode,map,categories,post map,point,location,address,images,geocoder,google,shape,list,grouping,cluster,infowindow,route,pin,streetview,post,posts,pages,widget,image,exif tag,plugin,sidebar,stylize,admin
5
  Requires at least: 3.0.5
6
- Tested up to: 6.0
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -636,6 +636,10 @@ Now the most important part create the shape's area. To create the shape's area
636
 
637
  == Changelog ==
638
 
 
 
 
 
639
  = 1.0.43 =
640
 
641
  * Modifies the Google Maps loading process to avoid conflicts with third-party themes.
3
  Donate link: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
4
  Tags:google maps,maps,marker,gmap,places,shortcode,map,categories,post map,point,location,address,images,geocoder,google,shape,list,grouping,cluster,infowindow,route,pin,streetview,post,posts,pages,widget,image,exif tag,plugin,sidebar,stylize,admin
5
  Requires at least: 3.0.5
6
+ Tested up to: 6.1
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
636
 
637
  == Changelog ==
638
 
639
+ = 1.0.44 =
640
+
641
+ * Improves the plugin security.
642
+
643
  = 1.0.43 =
644
 
645
  * Modifies the Google Maps loading process to avoid conflicts with third-party themes.