Scripts n Styles - Version 2.0.4

Version Description

Download this release

Release Info

Developer WraithKenny
Plugin Icon wp plugin Scripts n Styles
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpressfoundation.org/donate/
4
  Tags: admin, CSS, javascript, code, custom, Style
5
  Requires at least: 3.1
6
  Tested up to: 3.2
7
- Stable tag: 2.0.3
8
 
9
  This plugin allows Admin users to individually add custom CSS, Classes and JavaScript directly to Post, Pages or any other custom post types.
10
 
4
  Tags: admin, CSS, javascript, code, custom, Style
5
  Requires at least: 3.1
6
  Tested up to: 3.2
7
+ Stable tag: 2.0.4
8
 
9
  This plugin allows Admin users to individually add custom CSS, Classes and JavaScript directly to Post, Pages or any other custom post types.
10
 
includes/class.SnS_Admin.php CHANGED
@@ -13,7 +13,7 @@ class SnS_Admin
13
  * Constants
14
  */
15
  const MENU_SLUG = 'Scripts-n-Styles';
16
- const VERSION = '2.0.3';
17
  /**#@-*/
18
 
19
  /**
13
  * Constants
14
  */
15
  const MENU_SLUG = 'Scripts-n-Styles';
16
+ const VERSION = '2.0.2';
17
  /**#@-*/
18
 
19
  /**
includes/class.SnS_Settings_Page.php CHANGED
@@ -147,6 +147,10 @@ class SnS_Settings_Page
147
  * Outputs the Usage Section.
148
  */
149
  static function usage_section() {
 
 
 
 
150
  $options = get_option( 'SnS_options' );
151
 
152
  $all_posts = get_posts( array( 'numberposts' => -1, 'post_type' => 'any', 'post_status' => 'any' ) );
147
  * Outputs the Usage Section.
148
  */
149
  static function usage_section() {
150
+ if ( ! isset( $_REQUEST[ 'usage' ] ) || ! $_REQUEST[ 'usage' ] ) {
151
+ echo '<a href="' . menu_page_url( SnS_Admin::MENU_SLUG, false ) . '&usage=1"/>Show Usage</a>';
152
+ return;
153
+ }
154
  $options = get_option( 'SnS_options' );
155
 
156
  $all_posts = get_posts( array( 'numberposts' => -1, 'post_type' => 'any', 'post_status' => 'any' ) );
scripts-n-styles.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.unfocus.com/projects/scripts-n-styles/
5
  Description: Allows WordPress admin users the ability to add custom CSS and JavaScript directly to individual Post, Pages or custom post types.
6
  Author: unFocus Projects
7
  Author URI: http://www.unfocus.com/
8
- Version: 2.0.3
9
  License: GPL2
10
  Network: true
11
  */
@@ -44,7 +44,7 @@ Network: true
44
  * @link http://www.unfocus.com/projects/scripts-n-styles/ Plugin URI
45
  * @author unFocus Projects
46
  * @link http://www.unfocus.com/ Author URI
47
- * @version 2.0.3
48
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
49
  * @copyright Copyright (c) 2010-2011, Kenneth Newman
50
  * @todo Add Post Type Selection on Options Page? Not sure that's usefull.
5
  Description: Allows WordPress admin users the ability to add custom CSS and JavaScript directly to individual Post, Pages or custom post types.
6
  Author: unFocus Projects
7
  Author URI: http://www.unfocus.com/
8
+ Version: 2.0.4
9
  License: GPL2
10
  Network: true
11
  */
44
  * @link http://www.unfocus.com/projects/scripts-n-styles/ Plugin URI
45
  * @author unFocus Projects
46
  * @link http://www.unfocus.com/ Author URI
47
+ * @version 2.0.4
48
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
49
  * @copyright Copyright (c) 2010-2011, Kenneth Newman
50
  * @todo Add Post Type Selection on Options Page? Not sure that's usefull.