Changeset 408577
- Timestamp:
- 07/12/2011 02:54:49 AM (15 years ago)
- Location:
- secret-passage/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
secret-passage.js (modified) (1 diff)
-
secret-passage.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
secret-passage/trunk/readme.txt
r404831 r408577 31 31 == Changelog == 32 32 33 = 1.0 = 34 * Fixed a really obvious bug where it would send you to a 404 page if your site URL was different than your WordPress URL. 35 * Includes required JavaScript files regardless of plugin directory name. (In case you upload multiple versions of this 36 plugin or something silly like that.) 37 33 38 = 0.1 = 34 * Everything !39 * Everything's new! 35 40 36 41 == Upgrade Notice == 37 42 43 = 1.0 = 44 If this didn't work for you before, it should now. Check out the changelog for the (nerdy) details. 45 38 46 = 0.1 = 39 47 Welcome to the world, Secret Passage! -
secret-passage/trunk/secret-passage.js
r404555 r408577 9 9 jQuery(document).bind('keydown', settings.hotkey, function(){ 10 10 11 location.href = 'wp-admin';11 location.href = settings.admin_url; 12 12 // console.log('hi'); 13 13 -
secret-passage/trunk/secret-passage.php
r404555 r408577 26 26 */ 27 27 28 $secret_passage_dir = basename(dirname(__FILE__)); 28 29 $secret_passage_hotkey = get_option('secret_passage_hotkey', 'Ctrl+Shift+A'); 29 30 … … 31 32 wp_enqueue_script('jquery'); 32 33 34 global $secret_passage_dir; 35 33 36 wp_deregister_script('jquery-hotkeys'); 34 wp_register_script('jquery-hotkeys', plugins_url() . '/ secret-passage/jquery.hotkeys.js', array('jquery'));37 wp_register_script('jquery-hotkeys', plugins_url() . '/' . $secret_passage_dir .'/jquery.hotkeys.js', array('jquery')); 35 38 wp_enqueue_script('jquery-hotkeys'); 36 39 37 40 38 wp_register_script('secret-passage', plugins_url() . '/ secret-passage/secret-passage.js', array('jquery-hotkeys'));41 wp_register_script('secret-passage', plugins_url() . '/' . $secret_passage_dir . '/secret-passage.js', array('jquery-hotkeys')); 39 42 wp_enqueue_script('secret-passage'); 40 43 … … 42 45 wp_localize_script( 'secret-passage', 'settings', array( 43 46 'hotkey' => $secret_passage_hotkey, 47 'admin_url' => get_admin_url(), 44 48 )); 45 49
Note: See TracChangeset
for help on using the changeset viewer.