Changeset 433285
- Timestamp:
- 09/04/2011 04:48:17 PM (15 years ago)
- Location:
- add-link-class/trunk
- Files:
-
- 2 edited
-
link-class.php (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-link-class/trunk/link-class.php
r431431 r433285 4 4 Plugin URI: http://www.vagabumming.com/add-link-class 5 5 Description: Expands functionality of the default wordpress link editor within the visual post editor 6 Version: 0.86 Version: 1.0 7 7 Author: Will Brubaker 8 8 Author URI: http://www.vagabumming.com … … 29 29 static private $vagabumming_plugin_values = array( 30 30 'name'=>'Add Link Class', 31 'version'=>'0. 8', //hate using a string value here, but need it to hold non-numeric values31 'version'=>'0.9', //hate using a string value here, but need it to hold non-numeric values 32 32 'slug'=>'alc', 33 33 'supplementary'=>array(//a place to put things in the future.. … … 82 82 } 83 83 function initialize_plugin(){ 84 //if this isn't a public blog , don't call home:85 if( get_option('blog_public') == 1){84 //if this isn't a public blog on a public server, don't call home: 85 if((get_option('blog_public') == 1) && filter_var($_SERVER['SERVER_ADDR'],FILTER_VALIDATE_IP,FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)){ 86 86 $this_site = urlencode(get_site_url()); 87 87 $this_plugin = urlencode(self::$vagabumming_plugin_values['name']); … … 182 182 if((!get_option('vagabumming_link_back')) || (!get_option('vagabumming_opt_out') && get_option('blog_public') == 1)) 183 183 add_action('wp_dashboard_setup', array('Add_Link_Class','create_admin_widget')); 184 185 /*deprecated?if(get_option('blog_public') == 1 && ! (/*get_option('vagabumming_plugin_users') && get_option('vagabumming_opt_out'))){186 //there's really no sense in calling an additional function, let's do all this stuff here187 //opt_out may already be set, OR this may be a 'private' blog, if so, we don't want it calling home188 //so, check those values first189 //o.k., good190 //we can just add this to the array of vababumming plugins and be done191 /*{//grab option vagabumming_plugins_installed}192 self::my_plugin_users();193 }*/194 195 196 184 197 185 } … … 207 195 } 208 196 function add_link_class_external_plugin($plugin_array){ 209 $plugin_array['wplink'] = 'http://pokin.mine.nu/wp-content/plugins/EZ_tooltip/mce/plugins/wplink/editor_plugin.js';197 $plugin_array['wplink'] = plugins_url('/js/wplink/editor_plugin.js', __FILE__); 210 198 return $plugin_array; 211 199 } -
add-link-class/trunk/readme.txt
r431940 r433285 4 4 Requires at least: 3.2.1 5 5 Tested up to: 3.2.1 6 Stable tag: 0.86 Stable tag: 1.0 7 7 8 8 Expands functionality of the default wordpress link editor within the visual post editor. … … 64 64 65 65 == Changelog == 66 = 1.0 = 67 * 04 Sep 2011 68 * ACK!!! There was a hard-coded url in there, that was bad but it's fixed now. 66 69 = 0.9 = 67 70 * 01 Sep 2011 … … 93 96 94 97 == Upgrade notice == 98 = 1.0 = 99 Critical Update! 100 95 101 = 0.8 = 96 102 New version, show the love!
Note: See TracChangeset
for help on using the changeset viewer.