Changeset 545245
- Timestamp:
- 05/17/2012 06:03:01 AM (14 years ago)
- Location:
- wp-api/trunk
- Files:
-
- 3 edited
-
admin/admin.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-api/trunk/admin/admin.php
r545242 r545245 17 17 ); 18 18 } 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 }39 19 } 40 20 ?> -
wp-api/trunk/index.php
r545242 r545245 5 5 Description: Wordpress api in JSON format 6 6 Author: Peyman Aslani 7 Version: 1.0 7 Version: 1.0.1 8 8 Author URI: http://www.myappsnippet.com/ 9 9 */ … … 18 18 //hooks 19 19 add_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');22 20 new get_author(); 23 21 new get_tags(); -
wp-api/trunk/readme.txt
r545242 r545245 5 5 Requires at least: 2.8 6 6 Tested up to: 3.2.1 7 Stable tag: 1.0 7 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 == Changelog == 42 42 43 = 1.0.1 = 44 * removed the jQuery for better performance in the control panel 45 43 46 = 1.0 = 44 47 * uploaded to wordpress directory 45 48 49 46 50 == Upgrade Notice == 51 52 = 1.0.1 = 53 * removed the jQuery for better performance in the control panel 47 54 48 55 = 1.0 =
Note: See TracChangeset
for help on using the changeset viewer.