Plugin Directory

Changeset 408577


Ignore:
Timestamp:
07/12/2011 02:54:49 AM (15 years ago)
Author:
Captin Shmit
Message:

Fixed a couple of really obvious bugs.

Location:
secret-passage/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • secret-passage/trunk/readme.txt

    r404831 r408577  
    3131== Changelog ==
    3232
     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
     36plugin or something silly like that.)
     37
    3338= 0.1 =
    34 * Everything!
     39* Everything's new!
    3540
    3641== Upgrade Notice ==
    3742
     43= 1.0 =
     44If this didn't work for you before, it should now. Check out the changelog for the (nerdy) details.
     45
    3846= 0.1 =
    3947Welcome to the world, Secret Passage!
  • secret-passage/trunk/secret-passage.js

    r404555 r408577  
    99    jQuery(document).bind('keydown', settings.hotkey, function(){
    1010
    11     location.href = 'wp-admin';
     11    location.href = settings.admin_url;
    1212//  console.log('hi');
    1313
  • secret-passage/trunk/secret-passage.php

    r404555 r408577  
    2626*/
    2727
     28$secret_passage_dir = basename(dirname(__FILE__));
    2829$secret_passage_hotkey = get_option('secret_passage_hotkey', 'Ctrl+Shift+A');
    2930
     
    3132wp_enqueue_script('jquery');
    3233
     34global $secret_passage_dir;
     35
    3336wp_deregister_script('jquery-hotkeys');
    34 wp_register_script('jquery-hotkeys', plugins_url() . '/secret-passage/jquery.hotkeys.js', array('jquery'));
     37wp_register_script('jquery-hotkeys', plugins_url() . '/' . $secret_passage_dir .'/jquery.hotkeys.js', array('jquery'));
    3538wp_enqueue_script('jquery-hotkeys');
    3639
    3740
    38 wp_register_script('secret-passage', plugins_url() . '/secret-passage/secret-passage.js', array('jquery-hotkeys'));
     41wp_register_script('secret-passage', plugins_url() . '/' . $secret_passage_dir . '/secret-passage.js', array('jquery-hotkeys'));
    3942wp_enqueue_script('secret-passage');
    4043
     
    4245wp_localize_script( 'secret-passage', 'settings', array(
    4346        'hotkey' => $secret_passage_hotkey,
     47        'admin_url' => get_admin_url(),
    4448        ));
    4549
Note: See TracChangeset for help on using the changeset viewer.