Changeset 517449
- Timestamp:
- 03/11/2012 10:17:10 AM (14 years ago)
- Location:
- hacklog-remote-image-autosave/trunk
- Files:
-
- 1 added
- 2 edited
-
hacklog-remote-image-autosave.php (modified) (4 diffs)
-
loader.php (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hacklog-remote-image-autosave/trunk/hacklog-remote-image-autosave.php
r517434 r517449 1 1 <?php 2 /*3 Plugin Name: Hacklog Remote Image Autosave4 Version: 2.0.55 Plugin URI: http://ihacklog.com/?p=50876 Description: save remote images in the posts to local server and add it as an attachment to the post.7 Author: 荒野无灯8 Author URI: http://ihacklog.com9 */10 11 2 /** 12 3 * $Id$ … … 39 30 self::$opts = get_option(self::opt, self::$opts); 40 31 add_action( 'admin_menu', array (__CLASS__, 'add_setting_menu' ) ); 41 //add_filter( 'content_save_pre', array (__CLASS__, 'save_post' ) );42 //add_action( 'admin_footer', array (__CLASS__, 'footer_js' ) );43 32 // add editor button 44 33 add_action('media_buttons', array(__CLASS__, 'add_media_button'), 20); 45 register_activation_hook( __FILE__, array(__CLASS__, 'my_activation'));46 register_deactivation_hook( __FILE__, array(__CLASS__, 'my_deactivation'));34 register_activation_hook(HACKLOG_RIA_LOADER, array(__CLASS__, 'my_activation')); 35 register_deactivation_hook(HACKLOG_RIA_LOADER, array(__CLASS__, 'my_deactivation')); 47 36 } 48 37 … … 104 93 function add_setting_menu() 105 94 { 106 add_options_page( self::$plugin_name. ' Options', 'Hacklog RIA', 8, __FILE__, array(__CLASS__,'option_page') );95 add_options_page( self::$plugin_name. ' Options', 'Hacklog RIA', 'manage_options', md5(HACKLOG_RIA_LOADER), array(__CLASS__,'option_page') ); 107 96 } 108 97 … … 157 146 158 147 } //end class 159 160 //ok,let's go,have fun-_-161 hacklog_remote_image_autosave::init(); -
hacklog-remote-image-autosave/trunk/readme.txt
r517438 r517449 5 5 Requires at least: 3.2.1 6 6 Tested up to: 3.3.1 7 Stable tag: 2.0. 57 Stable tag: 2.0.6 8 8 9 9 save remote images in the posts to local server and add it as an attachment to the post. … … 43 43 44 44 == Changelog == 45 46 = 2.0.6 = 47 * improved: DO NOT load plugin in front end. 48 * fixed: changed to use the WP 3.0 version Roles and Capabilities permission value 45 49 46 50 = 2.0.5 =
Note: See TracChangeset
for help on using the changeset viewer.