- Timestamp:
- 03/08/2012 07:33:40 PM (13 years ago)
- Location:
- wpide
- Files:
- 2 edited
- tags/1.0.5/WPide.php (modified) (2 diffs)
- trunk/WPide.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
wpide/tags/1.0.5/WPide.php
r516364 r516415 29 29 30 30 } 31 32 31 33 32 public static function add_admin_head() 34 33 { โฆ โฆ 144 143 add_action( 'init', create_function( '', 'new WPide();' ) ); 145 144 } 145 146 147 add_filter("plugin_row_meta", 'wpide_dev_links', 10, 2); 148 149 function wpide_dev_links($links, $file) { 150 static $this_plugin; 151 152 if (!$this_plugin) { 153 $this_plugin = plugin_basename(__FILE__); 154 } 155 156 // check to make sure we are on the correct plugin 157 if ($file === $this_plugin) { 158 // the anchor tag and href to the URL we want. For a "Settings" link, this needs to be the url of your settings page 159 $settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/plugins.php?page=install-required-plugins" style="font-weight:bold;">Download and install V2 Development version</a>'; 160 // add the link to the list 161 array_push($links, $settings_link); 162 } 163 return $links; 164 } 146 165 147 166 wpide/trunk/WPide.php
r516364 r516415 29 29 30 30 } 31 32 31 33 32 public static function add_admin_head() 34 33 { โฆ โฆ 144 143 add_action( 'init', create_function( '', 'new WPide();' ) ); 145 144 } 145 146 147 add_filter("plugin_row_meta", 'wpide_dev_links', 10, 2); 148 149 function wpide_dev_links($links, $file) { 150 static $this_plugin; 151 152 if (!$this_plugin) { 153 $this_plugin = plugin_basename(__FILE__); 154 } 155 156 // check to make sure we are on the correct plugin 157 if ($file === $this_plugin) { 158 // the anchor tag and href to the URL we want. For a "Settings" link, this needs to be the url of your settings page 159 $settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/plugins.php?page=install-required-plugins" style="font-weight:bold;">Download and install V2 Development version</a>'; 160 // add the link to the list 161 array_push($links, $settings_link); 162 } 163 return $links; 164 } 146 165 147 166
Note: See TracChangeset for help on using the changeset viewer.