Changeset 2753811
- Timestamp:
- 07/08/2022 03:31:17 PM (4 years ago)
- Location:
- scripts-n-styles
- Files:
-
- 4 edited
- 1 copied
-
tags/3.5.2 (copied) (copied from scripts-n-styles/trunk)
-
tags/3.5.2/README.txt (modified) (3 diffs)
-
tags/3.5.2/scripts-n-styles.php (modified) (7 diffs)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/scripts-n-styles.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scripts-n-styles/tags/3.5.2/README.txt
r2044197 r2753811 3 3 Tags: admin, CSS, javascript, code, custom, Style 4 4 Requires at least: 5.0 5 Tested up to: 5.16 Requires PHP: 5.47 Stable tag: 3.5. 15 Tested up to: 6.0 6 Requires PHP: 7.4 7 Stable tag: 3.5.2 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 26 26 * **There is no input validation.** This plugin puts exactly what you type in the meta box directly into the `html` with no error checking. You are an Admin, and we trust you to be carefull. Try not to break anything. 27 27 * Do to the licensing of the libraries used, this plugin is released "GPL 3.0 or later" if you care about those things. 28 29 = Contact: =30 31 You'll have better luck contacting me if you try me on [Twitter](http://twitter.com/WraithKenny1) and [Github](https://github.com/unFocus/Scripts-n-Styles/issues). I also have a day job at [Ashworth Creative](https://ashworthcreative.com/); check us out!32 28 33 29 == Installation == … … 59 55 60 56 == Changelog == 57 58 = 3.5.2 = 59 * Fix PHP 8 notice 61 60 62 61 = 3.5.1 = -
scripts-n-styles/tags/3.5.2/scripts-n-styles.php
r2007260 r2753811 2 2 /* 3 3 Plugin Name: Scripts n Styles 4 Plugin URI: http ://www.unfocus.com/projects/scripts-n-styles/4 Plugin URI: https://www.unfocus.com/projects/scripts-n-styles/ 5 5 Description: Allows WordPress admin users the ability to add custom CSS and JavaScript directly to individual Post, Pages or custom post types. 6 6 Author: unFocus Projects 7 Author URI: http ://www.unfocus.com/8 Version: 3.5. 17 Author URI: https://www.unfocus.com/ 8 Version: 3.5.2 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 14 14 15 15 /* The Scripts n Styles WordPress Plugin 16 Copyright (c) 2010-2019 Kenneth Newman <http ://www.unfocus.com/>17 Copyright (c) 2012 Kevin Newman <http ://www.unfocus.com/>16 Copyright (c) 2010-2019 Kenneth Newman <https://www.unfocus.com/> 17 Copyright (c) 2012 Kevin Newman <https://www.unfocus.com/> 18 18 Copyright (c) 2012-2013 adcSTUDIO LLC <http://www.adcstudio.com/> 19 19 … … 33 33 This file incorporates work covered by other licenses and permissions. 34 34 */ 35 36 if ( version_compare( PHP_VERSION, '5.4', '<' ) ) :37 function sns_disable_update( $value ) {38 if( isset( $value->response[plugin_basename( __FILE__ )] ) ) {39 unset( $value->response[plugin_basename( __FILE__ )] );40 }41 return $value;42 }43 add_filter( 'site_transient_update_plugins', 'sns_disable_update' );44 endif;45 35 46 36 /** … … 60 50 * 61 51 * @package Scripts_n_Styles 62 * @link http ://www.unfocus.com/projects/scripts-n-styles/ Plugin URI52 * @link https://www.unfocus.com/projects/scripts-n-styles/ Plugin URI 63 53 * @author unFocus Projects 64 * @link http ://www.unfocus.com/ Author URI65 * @version 3.5. 154 * @link https://www.unfocus.com/ Author URI 55 * @version 3.5.2 66 56 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 67 57 * @copyright Copyright (c) 2010 - 2019, Kenneth Newman … … 81 71 * @static 82 72 */ 83 const VERSION = '3.5. 1';73 const VERSION = '3.5.2'; 84 74 static $file = __FILE__; 85 75 static $cm_themes = array( 'default', '3024-day', '3024-night', 'ambiance', … … 158 148 add_shortcode( 'hoops', array( __CLASS__, 'shortcode' ) ); 159 149 } 160 static function shortcode( $atts, $content = null , $tag) {150 static function shortcode( $atts, $content = null ) { 161 151 global $post; 162 152 extract( shortcode_atts( array( 'name' => 0, ), $atts ) ); … … 182 172 return $output; 183 173 } 184 static function hoops_widget( $atts, $content = null , $tag) {174 static function hoops_widget( $atts, $content = null ) { 185 175 $options = get_option( 'SnS_options' ); 186 176 $hoops = $options['hoops']['shortcodes']; -
scripts-n-styles/trunk/README.txt
r2044197 r2753811 3 3 Tags: admin, CSS, javascript, code, custom, Style 4 4 Requires at least: 5.0 5 Tested up to: 5.16 Requires PHP: 5.47 Stable tag: 3.5. 15 Tested up to: 6.0 6 Requires PHP: 7.4 7 Stable tag: 3.5.2 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 26 26 * **There is no input validation.** This plugin puts exactly what you type in the meta box directly into the `html` with no error checking. You are an Admin, and we trust you to be carefull. Try not to break anything. 27 27 * Do to the licensing of the libraries used, this plugin is released "GPL 3.0 or later" if you care about those things. 28 29 = Contact: =30 31 You'll have better luck contacting me if you try me on [Twitter](http://twitter.com/WraithKenny1) and [Github](https://github.com/unFocus/Scripts-n-Styles/issues). I also have a day job at [Ashworth Creative](https://ashworthcreative.com/); check us out!32 28 33 29 == Installation == … … 59 55 60 56 == Changelog == 57 58 = 3.5.2 = 59 * Fix PHP 8 notice 61 60 62 61 = 3.5.1 = -
scripts-n-styles/trunk/scripts-n-styles.php
r2007260 r2753811 2 2 /* 3 3 Plugin Name: Scripts n Styles 4 Plugin URI: http ://www.unfocus.com/projects/scripts-n-styles/4 Plugin URI: https://www.unfocus.com/projects/scripts-n-styles/ 5 5 Description: Allows WordPress admin users the ability to add custom CSS and JavaScript directly to individual Post, Pages or custom post types. 6 6 Author: unFocus Projects 7 Author URI: http ://www.unfocus.com/8 Version: 3.5. 17 Author URI: https://www.unfocus.com/ 8 Version: 3.5.2 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 14 14 15 15 /* The Scripts n Styles WordPress Plugin 16 Copyright (c) 2010-2019 Kenneth Newman <http ://www.unfocus.com/>17 Copyright (c) 2012 Kevin Newman <http ://www.unfocus.com/>16 Copyright (c) 2010-2019 Kenneth Newman <https://www.unfocus.com/> 17 Copyright (c) 2012 Kevin Newman <https://www.unfocus.com/> 18 18 Copyright (c) 2012-2013 adcSTUDIO LLC <http://www.adcstudio.com/> 19 19 … … 33 33 This file incorporates work covered by other licenses and permissions. 34 34 */ 35 36 if ( version_compare( PHP_VERSION, '5.4', '<' ) ) :37 function sns_disable_update( $value ) {38 if( isset( $value->response[plugin_basename( __FILE__ )] ) ) {39 unset( $value->response[plugin_basename( __FILE__ )] );40 }41 return $value;42 }43 add_filter( 'site_transient_update_plugins', 'sns_disable_update' );44 endif;45 35 46 36 /** … … 60 50 * 61 51 * @package Scripts_n_Styles 62 * @link http ://www.unfocus.com/projects/scripts-n-styles/ Plugin URI52 * @link https://www.unfocus.com/projects/scripts-n-styles/ Plugin URI 63 53 * @author unFocus Projects 64 * @link http ://www.unfocus.com/ Author URI65 * @version 3.5. 154 * @link https://www.unfocus.com/ Author URI 55 * @version 3.5.2 66 56 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 67 57 * @copyright Copyright (c) 2010 - 2019, Kenneth Newman … … 81 71 * @static 82 72 */ 83 const VERSION = '3.5. 1';73 const VERSION = '3.5.2'; 84 74 static $file = __FILE__; 85 75 static $cm_themes = array( 'default', '3024-day', '3024-night', 'ambiance', … … 158 148 add_shortcode( 'hoops', array( __CLASS__, 'shortcode' ) ); 159 149 } 160 static function shortcode( $atts, $content = null , $tag) {150 static function shortcode( $atts, $content = null ) { 161 151 global $post; 162 152 extract( shortcode_atts( array( 'name' => 0, ), $atts ) ); … … 182 172 return $output; 183 173 } 184 static function hoops_widget( $atts, $content = null , $tag) {174 static function hoops_widget( $atts, $content = null ) { 185 175 $options = get_option( 'SnS_options' ); 186 176 $hoops = $options['hoops']['shortcodes'];
Note: See TracChangeset
for help on using the changeset viewer.