Post Snippets - Version 3.0.19

Version Description

Download this release

Release Info

Developer wpexpertsio
Plugin Icon 128x128 Post Snippets
Version 3.0.19
Comparing to
See all releases

Code changes from version 3.0.18 to 3.0.19

Files changed (3) hide show
  1. post-snippets.php +2 -2
  2. readme.txt +5 -1
  3. src/PostSnippets/Admin.php +2 -2
post-snippets.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Post Snippets
13
  * Plugin URI: https://www.postsnippets.com
14
  * Description: Create a library of reusable content and insert it into your posts and pages. Navigate to "Settings > Post Snippets" to get started.
15
- * Version: 3.0.18
16
  * Author: Postsnippets
17
  * Author URI: https://www.postsnippets.com
18
  * License: GPL-2.0+
@@ -94,7 +94,7 @@ if ( !function_exists( 'postsnippets_fs' ) ) {
94
  define( 'PS_MAIN_FILE', basename( __FILE__ ) );
95
  }
96
  if ( !defined( 'PS_VERSION' ) ) {
97
- define( 'PS_VERSION', '3.0.18' );
98
  }
99
  if ( !defined( 'PS_MAIN_FILE_PATH' ) ) {
100
  define( 'PS_MAIN_FILE_PATH', __FILE__ );
12
  * Plugin Name: Post Snippets
13
  * Plugin URI: https://www.postsnippets.com
14
  * Description: Create a library of reusable content and insert it into your posts and pages. Navigate to "Settings > Post Snippets" to get started.
15
+ * Version: 3.0.19
16
  * Author: Postsnippets
17
  * Author URI: https://www.postsnippets.com
18
  * License: GPL-2.0+
94
  define( 'PS_MAIN_FILE', basename( __FILE__ ) );
95
  }
96
  if ( !defined( 'PS_VERSION' ) ) {
97
+ define( 'PS_VERSION', '3.0.19' );
98
  }
99
  if ( !defined( 'PS_MAIN_FILE_PATH' ) ) {
100
  define( 'PS_MAIN_FILE_PATH', __FILE__ );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: custom snippet, custom shortcode, snippet, snippets, shortcode, shortcodes
4
  Requires at least: 3.3
5
  Tested up to: 5.4
6
  Requires PHP: 5.3
7
- Stable tag: 3.0.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,10 @@ your clients to be able to use PHP code in a post snippet.
107
 
108
  == Changelog ==
109
 
 
 
 
 
110
  = Version 3.0.18 - 17 Apr 2020 =
111
 
112
  * Fixed Title not saving on save button
4
  Requires at least: 3.3
5
  Tested up to: 5.4
6
  Requires PHP: 5.3
7
+ Stable tag: 3.0.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
107
 
108
  == Changelog ==
109
 
110
+ = Version 3.0.19 - 29 Apr 2020 =
111
+
112
+ * Fixed Title always saving in lowercase letters
113
+
114
  = Version 3.0.18 - 17 Apr 2020 =
115
 
116
  * Fixed Title not saving on save button
src/PostSnippets/Admin.php CHANGED
@@ -1018,7 +1018,7 @@ class Admin
1018
  wp_send_json_error();
1019
  }
1020
  $pkey = intval( $_POST['key'] );
1021
- $title = sanitize_title( $_POST['title'] );
1022
  $snippets = get_option( 'post_snippets_options', array() );
1023
  if ( empty($snippets) ) {
1024
  wp_send_json_error();
@@ -1052,7 +1052,7 @@ class Admin
1052
  }
1053
  $title = "";
1054
  if(isset($_POST['title'])){
1055
- $title = sanitize_title( $_POST['title'] );
1056
  }
1057
 
1058
  if ( isset( $snippets[$key] ) ) {
1018
  wp_send_json_error();
1019
  }
1020
  $pkey = intval( $_POST['key'] );
1021
+ $title = sanitize_text_field( $_POST['title'] );
1022
  $snippets = get_option( 'post_snippets_options', array() );
1023
  if ( empty($snippets) ) {
1024
  wp_send_json_error();
1052
  }
1053
  $title = "";
1054
  if(isset($_POST['title'])){
1055
+ $title = sanitize_text_field( $_POST['title'] );
1056
  }
1057
 
1058
  if ( isset( $snippets[$key] ) ) {