Skip to content

Commit 717f009

Browse files
committed
Update verson number and changelog (2.5.1)
1 parent 013159a commit 717f009

File tree

6 files changed

+43
-30
lines changed

6 files changed

+43
-30
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
### 2.5.1
4+
* Fixed: Ensure errors are fatal before catching them during error checking
5+
* Fixed: Escape the snippet name on the edit page to ensure it displays correctly
6+
* Fixed: Exclude snippets with named functions from error checking so they do not run twice
7+
38
### 2.5.0
49
* Added: Detect parse and fatal errors in code when saving a snippet, and display a user-friendly message
510
* Fixed: Updated access of some methods in Code_Snippets_List_Table class to match updated WP_List_Table class

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
* __Requires at least:__ [WordPress 3.6](http://wordpress.org/download/) or later
44
* __Tested up to:__ WordPress 4.2.2
5-
* __Stable version:__ [2.5.0](http://downloads.wordpress.org/plugin/code-snippets.latest-stable.zip)
5+
* __Stable version:__ [2.5.1](http://downloads.wordpress.org/plugin/code-snippets.latest-stable.zip)
66
* __License:__ [MIT](license.txt)
77

88
Code Snippets is an easy, clean and simple way to add code snippets to your site. It removes the need to add custom snippets to your theme theme's `functions.php` file.

code-snippets.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* contribute to the localization, please see https://github.com/sheabunge/code-snippets
88
*
99
* @package Code_Snippets
10-
* @version 2.5.0
10+
* @version 2.5.1
1111
* @author Shea Bunge <http://bungeshea.com/>
1212
* @copyright Copyright (c) 2012-2015, Shea Bunge
1313
* @link https://github.com/sheabunge/code-snippets
@@ -20,7 +20,7 @@
2020
Description: An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again!
2121
Author: Shea Bunge
2222
Author URI: http://bungeshea.com
23-
Version: 2.5.0
23+
Version: 2.5.1
2424
License: MIT
2525
License URI: license.txt
2626
Text Domain: code-snippets
@@ -42,7 +42,7 @@
4242
* @since 2.0
4343
* @var string A PHP-standardized version number string
4444
*/
45-
define( 'CODE_SNIPPETS_VERSION', '2.5.0' );
45+
define( 'CODE_SNIPPETS_VERSION', '2.5.1' );
4646

4747
/**
4848
* The full path to the main file of this plugin

languages/code-snippets.pot

+24-24
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: code-snippets 2.5.0\n"
9+
"Project-Id-Version: code-snippets 2.5.1\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2015-10-08 19:35+1100\n"
11+
"POT-Creation-Date: 2015-10-11 20:33+1100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -35,100 +35,100 @@ msgstr ""
3535
msgid "Add New Snippet"
3636
msgstr ""
3737

38-
#: php/admin-menus/class-edit-menu.php:145
38+
#: php/admin-menus/class-edit-menu.php:149
3939
msgid "Don't Panic"
4040
msgstr ""
4141

42-
#: php/admin-menus/class-edit-menu.php:146
42+
#: php/admin-menus/class-edit-menu.php:150
4343
#, php-format
4444
msgid ""
4545
"The code snippet you are trying to save produced a fatal error on line %d:"
4646
msgstr ""
4747

48-
#: php/admin-menus/class-edit-menu.php:148
48+
#: php/admin-menus/class-edit-menu.php:152
4949
msgid ""
5050
"The previous version of the snippet is unchanged, and the rest of this site "
5151
"should be functioning normally as before."
5252
msgstr ""
5353

54-
#: php/admin-menus/class-edit-menu.php:149
54+
#: php/admin-menus/class-edit-menu.php:153
5555
msgid ""
5656
"Please use the back button in your browser to return to the previous page "
5757
"and try to fix the code error."
5858
msgstr ""
5959

60-
#: php/admin-menus/class-edit-menu.php:150
60+
#: php/admin-menus/class-edit-menu.php:154
6161
msgid ""
6262
"If you prefer, you can close this page and discard the changes you just "
6363
"made. No changes will be made to this site."
6464
msgstr ""
6565

66-
#: php/admin-menus/class-edit-menu.php:270 php/class-list-table.php:324
66+
#: php/admin-menus/class-edit-menu.php:279 php/class-list-table.php:324
6767
msgid "Description"
6868
msgstr ""
6969

70-
#: php/admin-menus/class-edit-menu.php:300 php/class-list-table.php:325
70+
#: php/admin-menus/class-edit-menu.php:309 php/class-list-table.php:325
7171
msgid "Tags"
7272
msgstr ""
7373

74-
#: php/admin-menus/class-edit-menu.php:304
74+
#: php/admin-menus/class-edit-menu.php:313
7575
msgid "Enter a list of tags; separated by commas"
7676
msgstr ""
7777

78-
#: php/admin-menus/class-edit-menu.php:323
78+
#: php/admin-menus/class-edit-menu.php:332
7979
msgid "Run snippet everywhere"
8080
msgstr ""
8181

82-
#: php/admin-menus/class-edit-menu.php:324
82+
#: php/admin-menus/class-edit-menu.php:333
8383
msgid "Only run in administration area"
8484
msgstr ""
8585

86-
#: php/admin-menus/class-edit-menu.php:325
86+
#: php/admin-menus/class-edit-menu.php:334
8787
msgid "Only run on site front-end"
8888
msgstr ""
8989

90-
#: php/admin-menus/class-edit-menu.php:329
90+
#: php/admin-menus/class-edit-menu.php:338
9191
msgid "Scope"
9292
msgstr ""
9393

94-
#: php/admin-menus/class-edit-menu.php:349
94+
#: php/admin-menus/class-edit-menu.php:358
9595
msgid "Sharing"
9696
msgstr ""
9797

98-
#: php/admin-menus/class-edit-menu.php:353
98+
#: php/admin-menus/class-edit-menu.php:362
9999
msgid "Allow this snippet to be activated on individual sites on the network"
100100
msgstr ""
101101

102-
#: php/admin-menus/class-edit-menu.php:406
102+
#: php/admin-menus/class-edit-menu.php:415
103103
#, php-format
104104
msgid "The snippet has been deactivated due to an error on line %d:"
105105
msgstr ""
106106

107-
#: php/admin-menus/class-edit-menu.php:411
107+
#: php/admin-menus/class-edit-menu.php:420
108108
msgid "The snippet has been deactivated due to an error in the code."
109109
msgstr ""
110110

111-
#: php/admin-menus/class-edit-menu.php:418
111+
#: php/admin-menus/class-edit-menu.php:427
112112
msgid "An error occurred when saving the snippet."
113113
msgstr ""
114114

115-
#: php/admin-menus/class-edit-menu.php:423
115+
#: php/admin-menus/class-edit-menu.php:432
116116
msgid "Snippet <strong>added</strong>."
117117
msgstr ""
118118

119-
#: php/admin-menus/class-edit-menu.php:424
119+
#: php/admin-menus/class-edit-menu.php:433
120120
msgid "Snippet <strong>updated</strong>."
121121
msgstr ""
122122

123-
#: php/admin-menus/class-edit-menu.php:425
123+
#: php/admin-menus/class-edit-menu.php:434
124124
msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
125125
msgstr ""
126126

127-
#: php/admin-menus/class-edit-menu.php:426
127+
#: php/admin-menus/class-edit-menu.php:435
128128
msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
129129
msgstr ""
130130

131-
#: php/admin-menus/class-edit-menu.php:427
131+
#: php/admin-menus/class-edit-menu.php:436
132132
msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
133133
msgstr ""
134134

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "code-snippets",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"description": "Manage code snippets running on a WordPress-powered site through a graphical interface",
55
"homepage": "http://bungeshea.com/plugins/code-snippets",
66
"main": "Gruntfile.js",

readme.txt

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: http://bungeshea.com/donate/
44
Tags: code-snippets, snippets, code, php, network, multisite
55
Requires at least: 3.6
66
Tested up to: 4.3.2
7-
Stable tag: 2.5.0
7+
Stable tag: 2.5.1
88
License: MIT
99
License URI: license.txt
1010

@@ -116,6 +116,11 @@ That's fantastic! Fork the [repository on GitHub](http://github.com/sheabunge/co
116116

117117
== Changelog ==
118118

119+
= 2.5.1 =
120+
* Fixed: Ensure errors are fatal before catching them during error checking
121+
* Fixed: Escape the snippet name on the edit page to ensure it displays correctly
122+
* Fixed: Exclude snippets with named functions from error checking so they do not run twice
123+
119124
= 2.5.0 =
120125
* Added: Detect parse and fatal errors in code when saving a snippet, and display a user-friendly message
121126
* Fixed: Updated access of some methods in Code_Snippets_List_Table class to match updated WP_List_Table class
@@ -379,6 +384,9 @@ __Fixed__
379384

380385
== Upgrade Notice ==
381386

387+
= 2.5.1 =
388+
Prevent Don't Panic message from being triggered accidentally
389+
382390
= 2.5.0 =
383391
Now detects errors in snippet code when saving
384392

0 commit comments

Comments
 (0)