Plugin Directory

Changeset 545245


Ignore:
Timestamp:
05/17/2012 06:03:01 AM (14 years ago)
Author:
myflashlab
Message:
 
Location:
wp-api/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-api/trunk/admin/admin.php

    r545242 r545245  
    1717         );
    1818    }
    19     static function jquery_init()
    20     {
    21         if (is_admin())
    22         {
    23             wp_deregister_script('jquery');
    24             wp_register_script('jquery', 'http://code.jquery.com/jquery-1.7.2.js');
    25             wp_enqueue_script('jquery');
    26         }
    27     }
    28     static function admin_jquery()
    29     {
    30         $url = network_site_url('/');
    31         $dir = $url.'wp-content/plugins/wp-api/includes/admin_jquery.js';
    32         if (is_admin())
    33         {
    34             wp_deregister_script('admin_jquery');
    35             wp_register_script('admin_jquery', $dir, false, '1.3.2');
    36             wp_enqueue_script('admin_jquery');
    37         }
    38     }
    3919}
    4020?>
  • wp-api/trunk/index.php

    r545242 r545245  
    55Description: Wordpress api in JSON format
    66Author: Peyman Aslani
    7 Version: 1.0
     7Version: 1.0.1
    88Author URI: http://www.myappsnippet.com/
    99*/
     
    1818//hooks
    1919add_action('admin_menu', 'admin_page_class::add_menu_item');
    20 add_action('admin_menu', 'admin_page_class::jquery_init');
    21 add_action('admin_menu', 'admin_page_class::admin_jquery');
    2220new get_author();
    2321new get_tags();
  • wp-api/trunk/readme.txt

    r545242 r545245  
    55Requires at least: 2.8
    66Tested up to: 3.2.1
    7 Stable tag: 1.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141== Changelog ==
    4242
     43= 1.0.1 =
     44* removed the jQuery for better performance in the control panel
     45
    4346= 1.0 =
    4447* uploaded to wordpress directory
    4548
     49
    4650== Upgrade Notice ==
     51
     52= 1.0.1 =
     53* removed the jQuery for better performance in the control panel
    4754
    4855= 1.0 =
Note: See TracChangeset for help on using the changeset viewer.