From 5376d07b05d85a4d810ebb519f7e71cae7d7bf80 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Fri, 3 May 2013 07:36:17 +1000 Subject: [PATCH] Correct path to admin menu icon. Fixes #8 --- CHANGELOG.md | 3 +++ README.md | 2 +- code-snippets.php | 4 ++-- includes/class-admin.php | 2 +- readme.txt | 10 ++++++++-- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb3b415e..3fe03328 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +# 1.7.1.2 +* Correct path to admin menu icon. Fixes [#8](https://github.com/bungeshea/code-snippets/issues/8) + ## 1.7.1.1 * Fixed a bug with custom capabilities and admin menus diff --git a/README.md b/README.md index be1be9af..dcc0cd7e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ * __Requires at least:__ [WordPress 3.3](http://wordpress.org/download/) or later * __Tested up to:__ WordPress 3.6 -* __Stable version:__ [1.7.1.1](http://downloads.wordpress.org/plugin/code-snippets.latest-stable.zip) +* __Stable version:__ [1.7.1.2](http://downloads.wordpress.org/plugin/code-snippets.latest-stable.zip) * __License:__ [MIT](license.txt) An easy, clean and simple way to add code snippets to your site. diff --git a/code-snippets.php b/code-snippets.php index b3f69432..104643b6 100644 --- a/code-snippets.php +++ b/code-snippets.php @@ -16,7 +16,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: 1.7.1.1 + * Version: 1.7.1.2 * License: MIT * License URI: license.txt * Text Domain: code-snippets @@ -53,7 +53,7 @@ final class Code_Snippets { * @access public * @var string A PHP-standardized version number string */ - public $version = '1.7.1.1'; + public $version = '1.7.1.2'; /** * Variables to hold plugin paths diff --git a/includes/class-admin.php b/includes/class-admin.php index e0dcbaaf..7494a6ad 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -173,7 +173,7 @@ function add_admin_menus() { /* Use a different screen icon for the MP6 interface */ if ( get_user_option( 'admin_color' ) !== 'mp6' ) - $menu_icon = apply_filters( 'code_snippets_menu_icon', plugins_url( 'images/menu-icon.png', $code_snippets->file ) ); + $menu_icon = apply_filters( 'code_snippets_menu_icon', plugins_url( 'assets/menu-icon.png', $code_snippets->file ) ); else $menu_icon = 'div'; diff --git a/readme.txt b/readme.txt index 923155ce..1e1aa8bc 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: http://code-snippets.bungeshea.com/donate/ Tags: code-snippets, snippets, code, php, network, multisite Requires at least: 3.3 Tested up to: 3.6 -Stable tag: 1.7.1.1 +Stable tag: 1.7.1.2 License: MIT License URI: license.txt @@ -111,12 +111,15 @@ That's fantastic! Join me on [GitHub](https://github.com/bungeshea/code-snippets == Changelog == += 1.7.1.2 = +* Correct path to admin menu icon ([#](http://wordpress.org/support/topic/icon-disappears-with-mp6?replies=6#post-4148319)) + = 1.7.1.1 = * Fix a minor bug with custom capabilities and admin menus = 1.7.1 = * Fix a bug with snippet being set as deactivated when saved -* Updated PHP Documentation completely. [[View online](http://bungeshea.github.io/code-snippets/api)] +* Updated PHP Documentation completely. [View online](http://bungeshea.github.io/code-snippets/api) * Only load admin functions when viewing dashboard * Added German translation thanks to [David Decker](http://deckerweb.de) * Allow or deny site administrators access to snippet admin menus. Set your preference in the **Enable Administration Menus** setting under the *Settings > Network Settings* network admin menu. @@ -207,6 +210,9 @@ Plugin updates will be posted on the [plugin's homepage](http://code-snippets.bu == Upgrade Notice == += 1.7.1.2 = +Fixes the admin menu icon not loading + = 1.7.1.1 = Fixes a minor bug with custom capabilities and admin menus