Plugin Directory

Changeset 517449


Ignore:
Timestamp:
03/11/2012 10:17:10 AM (14 years ago)
Author:
ihacklog
Message:
  • improved: DO NOT load plugin in front end.
  • fixed: changed to use the WP 3.0 version Roles and Capabilities permission value
Location:
hacklog-remote-image-autosave/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • hacklog-remote-image-autosave/trunk/hacklog-remote-image-autosave.php

    r517434 r517449  
    11<?php
    2 /*
    3 Plugin Name: Hacklog Remote Image Autosave
    4 Version: 2.0.5
    5 Plugin URI: http://ihacklog.com/?p=5087
    6 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.com
    9 */
    10 
    112/**
    123 * $Id$
     
    3930        self::$opts = get_option(self::opt, self::$opts);
    4031        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' ) );
    4332        // add editor button
    4433        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'));
    4736    }
    4837
     
    10493    function add_setting_menu()
    10594    {
    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') );
    10796    }
    10897   
     
    157146
    158147} //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  
    55Requires at least: 3.2.1
    66Tested up to: 3.3.1
    7 Stable tag: 2.0.5
     7Stable tag: 2.0.6
    88
    99save remote images in the posts to local server and add it as an attachment to the post.
     
    4343
    4444== 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
    4549
    4650= 2.0.5 =
Note: See TracChangeset for help on using the changeset viewer.