Version Description
(13 May 2022) = * Fixed: Issue with processing uploaded import files. * Fixed: Issue with processing tag filters.
Download this release
Release Info
Developer | bungeshea |
Plugin | Code Snippets |
Version | 2.14.6 |
Comparing to | |
See all releases |
Code changes from version 2.14.4 to 2.14.6
- code-snippets.php +3 -3
- css/font/code-snippets.eot +0 -0
- css/font/code-snippets.svg +0 -0
- css/font/code-snippets.ttf +0 -0
- css/font/code-snippets.woff +0 -0
- css/min/menu-icon.css +0 -0
- languages/code-snippets-id_ID.mo +0 -0
- languages/code-snippets-id_ID.po +0 -0
- languages/code-snippets-it_IT.mo +0 -0
- languages/code-snippets-it_IT.po +0 -0
- languages/code-snippets-ja_JP.mo +0 -0
- languages/code-snippets-ja_JP.po +0 -0
- languages/code-snippets-nl_NL.mo +0 -0
- languages/code-snippets-nl_NL.po +0 -0
- languages/code-snippets-ru_RU.mo +0 -0
- languages/code-snippets-ru_RU.po +0 -0
- languages/code-snippets-sk_SK.mo +0 -0
- languages/code-snippets-sk_SK.po +0 -0
- languages/code-snippets-sr_RS.mo +0 -0
- languages/code-snippets-sr_RS.po +0 -0
- languages/code-snippets-zh_CN.mo +0 -0
- languages/code-snippets-zh_CN.po +0 -0
- languages/code-snippets.pot +1 -1
- php/admin-menus/class-import-menu.php +2 -2
- php/admin-menus/class-manage-menu.php +1 -1
- php/class-admin.php +0 -0
- php/class-code-snippets.php +0 -0
- php/class-contextual-help.php +0 -0
- php/class-db.php +0 -0
- php/class-list-table.php +1 -1
- php/class-shortcode.php +0 -0
- php/settings/render-fields.php +0 -0
- readme.txt +9 -2
- uninstall.php +0 -0
code-snippets.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* @author Shea Bunge <shea@sheabunge.com>
|
10 |
* @copyright 2012-2021 Shea Bunge
|
11 |
* @license MIT http://opensource.org/licenses/MIT
|
12 |
-
* @version 2.14.
|
13 |
* @link https://github.com/sheabunge/code-snippets
|
14 |
*/
|
15 |
|
@@ -19,7 +19,7 @@ Plugin URI: https://github.com/sheabunge/code-snippets
|
|
19 |
Description: An easy, clean and simple way to run code snippets on your site. No need to edit to your theme's functions.php file again!
|
20 |
Author: Code Snippets Pro
|
21 |
Author URI: https://codesnippets.pro
|
22 |
-
Version: 2.14.
|
23 |
License: MIT
|
24 |
License URI: license.txt
|
25 |
Text Domain: code-snippets
|
@@ -110,7 +110,7 @@ function code_snippets() {
|
|
110 |
static $plugin;
|
111 |
|
112 |
if ( is_null( $plugin ) ) {
|
113 |
-
$plugin = new Code_Snippets( '2.14.
|
114 |
}
|
115 |
|
116 |
return $plugin;
|
9 |
* @author Shea Bunge <shea@sheabunge.com>
|
10 |
* @copyright 2012-2021 Shea Bunge
|
11 |
* @license MIT http://opensource.org/licenses/MIT
|
12 |
+
* @version 2.14.6
|
13 |
* @link https://github.com/sheabunge/code-snippets
|
14 |
*/
|
15 |
|
19 |
Description: An easy, clean and simple way to run code snippets on your site. No need to edit to your theme's functions.php file again!
|
20 |
Author: Code Snippets Pro
|
21 |
Author URI: https://codesnippets.pro
|
22 |
+
Version: 2.14.6
|
23 |
License: MIT
|
24 |
License URI: license.txt
|
25 |
Text Domain: code-snippets
|
110 |
static $plugin;
|
111 |
|
112 |
if ( is_null( $plugin ) ) {
|
113 |
+
$plugin = new Code_Snippets( '2.14.6', __FILE__ );
|
114 |
}
|
115 |
|
116 |
return $plugin;
|
css/font/code-snippets.eot
CHANGED
File without changes
|
css/font/code-snippets.svg
CHANGED
File without changes
|
css/font/code-snippets.ttf
CHANGED
File without changes
|
css/font/code-snippets.woff
CHANGED
File without changes
|
css/min/menu-icon.css
CHANGED
File without changes
|
languages/code-snippets-id_ID.mo
CHANGED
File without changes
|
languages/code-snippets-id_ID.po
CHANGED
File without changes
|
languages/code-snippets-it_IT.mo
CHANGED
File without changes
|
languages/code-snippets-it_IT.po
CHANGED
File without changes
|
languages/code-snippets-ja_JP.mo
CHANGED
File without changes
|
languages/code-snippets-ja_JP.po
CHANGED
File without changes
|
languages/code-snippets-nl_NL.mo
CHANGED
File without changes
|
languages/code-snippets-nl_NL.po
CHANGED
File without changes
|
languages/code-snippets-ru_RU.mo
CHANGED
File without changes
|
languages/code-snippets-ru_RU.po
CHANGED
File without changes
|
languages/code-snippets-sk_SK.mo
CHANGED
File without changes
|
languages/code-snippets-sk_SK.po
CHANGED
File without changes
|
languages/code-snippets-sr_RS.mo
CHANGED
File without changes
|
languages/code-snippets-sr_RS.po
CHANGED
File without changes
|
languages/code-snippets-zh_CN.mo
CHANGED
File without changes
|
languages/code-snippets-zh_CN.po
CHANGED
File without changes
|
languages/code-snippets.pot
CHANGED
@@ -6,7 +6,7 @@ msgstr ""
|
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
-
"POT-Creation-Date: 2022-05-
|
10 |
"Report-Msgid-Bugs-To: https://github.com/sheabunge/code-snippets/issues\n"
|
11 |
"X-Poedit-Basepath: ..\n"
|
12 |
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
+
"POT-Creation-Date: 2022-05-13 09:54+0000\n"
|
10 |
"Report-Msgid-Bugs-To: https://github.com/sheabunge/code-snippets/issues\n"
|
11 |
"X-Poedit-Basepath: ..\n"
|
12 |
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
php/admin-menus/class-import-menu.php
CHANGED
@@ -58,8 +58,8 @@ class Code_Snippets_Import_Menu extends Code_Snippets_Admin_Menu {
|
|
58 |
$network = is_network_admin();
|
59 |
$error = false;
|
60 |
|
61 |
-
$upload_files = array_map( '
|
62 |
-
$upload_filenames = array_map( '
|
63 |
$upload_mime_types = array_map( 'sanitize_mime_type', $_FILES['code_snippets_import_files']['type'] );
|
64 |
|
65 |
$dup_action = isset( $_POST['duplicate_action'] ) ? sanitize_key( $_POST['duplicate_action'] ) : 'ignore';
|
58 |
$network = is_network_admin();
|
59 |
$error = false;
|
60 |
|
61 |
+
$upload_files = array_map( 'sanitize_text_field', $_FILES['code_snippets_import_files']['tmp_name'] );
|
62 |
+
$upload_filenames = array_map( 'sanitize_text_field', $_FILES['code_snippets_import_files']['name'] );
|
63 |
$upload_mime_types = array_map( 'sanitize_mime_type', $_FILES['code_snippets_import_files']['type'] );
|
64 |
|
65 |
$dup_action = isset( $_POST['duplicate_action'] ) ? sanitize_key( $_POST['duplicate_action'] ) : 'ignore';
|
php/admin-menus/class-manage-menu.php
CHANGED
@@ -156,7 +156,7 @@ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
|
156 |
if ( defined( 'CODE_SNIPPETS_SAFE_MODE' ) && CODE_SNIPPETS_SAFE_MODE ) {
|
157 |
echo '<div id="message" class="error fade"><p>';
|
158 |
echo wp_kses_post(
|
159 |
-
__( '<strong>Warning:</strong> Safe mode is active and snippets will not execute! Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-config.php</code> to turn off safe mode. <a href="https://github.com/sheabunge/code-snippets/wiki/Safe-Mode" target="_blank">Help</a>', 'code-snippets' )
|
160 |
);
|
161 |
echo '</p></div>';
|
162 |
}
|
156 |
if ( defined( 'CODE_SNIPPETS_SAFE_MODE' ) && CODE_SNIPPETS_SAFE_MODE ) {
|
157 |
echo '<div id="message" class="error fade"><p>';
|
158 |
echo wp_kses_post(
|
159 |
+
__( '<strong>Warning:</strong> Safe mode is active and snippets will not execute! Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-config.php</code> to turn off safe mode. <a href="https://github.com/sheabunge/code-snippets/wiki/Safe-Mode" target="_blank">Help</a>', 'code-snippets' )
|
160 |
);
|
161 |
echo '</p></div>';
|
162 |
}
|
php/class-admin.php
CHANGED
File without changes
|
php/class-code-snippets.php
CHANGED
File without changes
|
php/class-contextual-help.php
CHANGED
File without changes
|
php/class-db.php
CHANGED
File without changes
|
php/class-list-table.php
CHANGED
@@ -1128,7 +1128,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
1128 |
* @ignore
|
1129 |
*/
|
1130 |
private function tags_filter_callback( $snippet ) {
|
1131 |
-
$tags = explode( ',',
|
1132 |
|
1133 |
foreach ( $tags as $tag ) {
|
1134 |
if ( in_array( $tag, $snippet->tags, true ) ) {
|
1128 |
* @ignore
|
1129 |
*/
|
1130 |
private function tags_filter_callback( $snippet ) {
|
1131 |
+
$tags = explode( ',', sanitize_text_field( $_GET['tag'] ) );
|
1132 |
|
1133 |
foreach ( $tags as $tag ) {
|
1134 |
if ( in_array( $tag, $snippet->tags, true ) ) {
|
php/class-shortcode.php
CHANGED
File without changes
|
php/settings/render-fields.php
CHANGED
File without changes
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: https://sheabunge.com/donate
|
|
4 |
Tags: snippets, functions, code, php, multisite
|
5 |
License: MIT
|
6 |
License URI: license.txt
|
7 |
-
Stable tag: 2.14.
|
8 |
-
Tested up to:
|
9 |
|
10 |
An easy, clean and simple way to run code snippets on your site.
|
11 |
|
@@ -122,6 +122,13 @@ The best way to do this is to fork the [repository on GitHub](https://github.com
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
= 2.14.4 (5 May 2022) =
|
126 |
* Fixed: Prevent array key errors when loading the snippet table with unknown order values.
|
127 |
|
4 |
Tags: snippets, functions, code, php, multisite
|
5 |
License: MIT
|
6 |
License URI: license.txt
|
7 |
+
Stable tag: 2.14.5
|
8 |
+
Tested up to: 6.0
|
9 |
|
10 |
An easy, clean and simple way to run code snippets on your site.
|
11 |
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 2.14.6 (13 May 2022) =
|
126 |
+
* Fixed: Issue with processing uploaded import files.
|
127 |
+
* Fixed: Issue with processing tag filters.
|
128 |
+
|
129 |
+
= 2.14.5 (10 May 2022) =
|
130 |
+
* Fixed: Incompatibility issue with older versions of PHP.
|
131 |
+
|
132 |
= 2.14.4 (5 May 2022) =
|
133 |
* Fixed: Prevent array key errors when loading the snippet table with unknown order values.
|
134 |
|
uninstall.php
CHANGED
File without changes
|