Version Description
Download this release
Release Info
Developer | WraithKenny |
Plugin | Scripts n Styles |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- README.txt +1 -1
- includes/class.SnS_Admin.php +1 -1
- includes/class.SnS_Admin_Meta_Box.php +1 -1
- scripts-n-styles.php +3 -3
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.
|
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.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 |
|
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 = '
|
17 |
/**#@-*/
|
18 |
|
19 |
/**
|
13 |
* Constants
|
14 |
*/
|
15 |
const MENU_SLUG = 'Scripts-n-Styles';
|
16 |
+
const VERSION = '2.0.3';
|
17 |
/**#@-*/
|
18 |
|
19 |
/**
|
includes/class.SnS_Admin_Meta_Box.php
CHANGED
@@ -34,7 +34,7 @@ class SnS_Admin_Meta_Box
|
|
34 |
*/
|
35 |
static function add_meta_boxes() {
|
36 |
if ( current_user_can( 'unfiltered_html' ) ) {
|
37 |
-
self::$post_types = get_post_types( array('show_ui' => true, '
|
38 |
foreach ( self::$post_types as $post_type ) {
|
39 |
add_meta_box( 'uFp_meta_box', 'Scripts n Styles', array( __CLASS__, 'meta_box' ), $post_type, 'normal', 'high' );
|
40 |
}
|
34 |
*/
|
35 |
static function add_meta_boxes() {
|
36 |
if ( current_user_can( 'unfiltered_html' ) ) {
|
37 |
+
self::$post_types = get_post_types( array('show_ui' => true, 'public' => true) ); // updated for http://core.trac.wordpress.org/changeset/18234
|
38 |
foreach ( self::$post_types as $post_type ) {
|
39 |
add_meta_box( 'uFp_meta_box', 'Scripts n Styles', array( __CLASS__, 'meta_box' ), $post_type, 'normal', 'high' );
|
40 |
}
|
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.
|
9 |
License: GPL2
|
10 |
Network: true
|
11 |
*/
|
@@ -44,9 +44,9 @@ 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
|
48 |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
49 |
-
* @copyright Copyright (c) 2010, Kenneth Newman
|
50 |
* @todo Add Post Type Selection on Options Page? Not sure that's usefull.
|
51 |
* @todo Add Conditional Tags support as alternative to Globally applying Scripts n Styles.
|
52 |
* @todo Create ability to add and register scripts and styles for enqueueing (via Options page).
|
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 |
* @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.
|
51 |
* @todo Add Conditional Tags support as alternative to Globally applying Scripts n Styles.
|
52 |
* @todo Create ability to add and register scripts and styles for enqueueing (via Options page).
|