Skip to content

Commit

Permalink
Update verson number and changelog (2.5.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheabunge committed Oct 11, 2015
1 parent 013159a commit 717f009
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 30 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### 2.5.1
* Fixed: Ensure errors are fatal before catching them during error checking
* Fixed: Escape the snippet name on the edit page to ensure it displays correctly
* Fixed: Exclude snippets with named functions from error checking so they do not run twice

### 2.5.0
* Added: Detect parse and fatal errors in code when saving a snippet, and display a user-friendly message
* Fixed: Updated access of some methods in Code_Snippets_List_Table class to match updated WP_List_Table class
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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.
Expand Down
6 changes: 3 additions & 3 deletions code-snippets.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* contribute to the localization, please see https://github.com/sheabunge/code-snippets
*
* @package Code_Snippets
* @version 2.5.0
* @version 2.5.1
* @author Shea Bunge <http://bungeshea.com/>
* @copyright Copyright (c) 2012-2015, Shea Bunge
* @link https://github.com/sheabunge/code-snippets
Expand All @@ -20,7 +20,7 @@
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!
Author: Shea Bunge
Author URI: http://bungeshea.com
Version: 2.5.0
Version: 2.5.1
License: MIT
License URI: license.txt
Text Domain: code-snippets
Expand All @@ -42,7 +42,7 @@
* @since 2.0
* @var string A PHP-standardized version number string
*/
define( 'CODE_SNIPPETS_VERSION', '2.5.0' );
define( 'CODE_SNIPPETS_VERSION', '2.5.1' );

/**
* The full path to the main file of this plugin
Expand Down
48 changes: 24 additions & 24 deletions languages/code-snippets.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: code-snippets 2.5.0\n"
"Project-Id-Version: code-snippets 2.5.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-08 19:35+1100\n"
"POT-Creation-Date: 2015-10-11 20:33+1100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -35,100 +35,100 @@ msgstr ""
msgid "Add New Snippet"
msgstr ""

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

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

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

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

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

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

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

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

#: php/admin-menus/class-edit-menu.php:323
#: php/admin-menus/class-edit-menu.php:332
msgid "Run snippet everywhere"
msgstr ""

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

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

#: php/admin-menus/class-edit-menu.php:329
#: php/admin-menus/class-edit-menu.php:338
msgid "Scope"
msgstr ""

#: php/admin-menus/class-edit-menu.php:349
#: php/admin-menus/class-edit-menu.php:358
msgid "Sharing"
msgstr ""

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

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

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

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

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

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

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "code-snippets",
"version": "2.5.0",
"version": "2.5.1",
"description": "Manage code snippets running on a WordPress-powered site through a graphical interface",
"homepage": "http://bungeshea.com/plugins/code-snippets",
"main": "Gruntfile.js",
Expand Down
10 changes: 9 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://bungeshea.com/donate/
Tags: code-snippets, snippets, code, php, network, multisite
Requires at least: 3.6
Tested up to: 4.3.2
Stable tag: 2.5.0
Stable tag: 2.5.1
License: MIT
License URI: license.txt

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

== Changelog ==

= 2.5.1 =
* Fixed: Ensure errors are fatal before catching them during error checking
* Fixed: Escape the snippet name on the edit page to ensure it displays correctly
* Fixed: Exclude snippets with named functions from error checking so they do not run twice

= 2.5.0 =
* Added: Detect parse and fatal errors in code when saving a snippet, and display a user-friendly message
* Fixed: Updated access of some methods in Code_Snippets_List_Table class to match updated WP_List_Table class
Expand Down Expand Up @@ -379,6 +384,9 @@ __Fixed__

== Upgrade Notice ==

= 2.5.1 =
Prevent Don't Panic message from being triggered accidentally

= 2.5.0 =
Now detects errors in snippet code when saving

Expand Down

0 comments on commit 717f009

Please sign in to comment.