Plugin Directory

Changeset 2217326


Ignore:
Timestamp:
12/24/2019 05:04:09 AM (6 years ago)
Author:
herchen
Message:

Moved wp_enqueue_script into admin_enqueue_scripts, tested latest WP version

Location:
admin-menu-search/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin-menu-search/trunk/admin-menu-search.js

    r2142250 r2217326  
    55    jQuery("#adminmenu").prepend("<li style='width: 80%;margin: 10px auto 10px auto;'><input type='text' id='admin-menu-filter-field' placeholder='Search Menus' style='width: 100%;background-image: url(../wp-content/plugins/admin-menu-search/icon-search.png);background-repeat: no-repeat;text-indent: 20px;-webkit-user-select:text;'></li>");
    66
    7     jQuery(document).on('keyup', '#admin-menu-filter-field', function(){
     7    jQuery(document).on('change input propertychange paste keyup', '#admin-menu-filter-field', function(){
    88
    99        var adminMenuFilterFieldValue = this.value.toLowerCase();
  • admin-menu-search/trunk/admin-menu-search.php

    r2142250 r2217326  
    44Plugin URI: https://herchen.com/admin-menu-search/
    55Description: Adds a search box to the top of the WordPress Admin Menu. Allows you to easily locate admin menu functions for sites with large amounts of menus or menu items.
    6 Version: 1.1
     6Version: 1.2
    77Author: Michael Herchenroder
    88Author URI: http://herchen.com
    99*/
    1010
     11add_action('admin_enqueue_scripts', 'fhqwhgads_load_scripts');
     12function fhqwhgads_load_scripts() {
     13    wp_enqueue_script( 'admin-menu-search', plugin_dir_url( __FILE__ )  . "/admin-menu-search.js", array(), '1.2', true );
     14}
     15
     16
    1117if ( is_admin() ) {
    12 
    13     wp_enqueue_script( 'admin-menu-search', plugin_dir_url( __FILE__ )  . "/admin-menu-search.js", array(), '1.1', true );
    1418    add_filter( 'plugin_row_meta', 'fhqwhgads_donate_link', 10, 2 );
    1519}
  • admin-menu-search/trunk/readme.txt

    r2141978 r2217326  
    44Text Domain: admin-menu-search
    55Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8NJPQ6RHLT5HN&source=url
    6 Tested up to: 5.2.2
     6Tested up to: 5.3.2
    77License: GPL2
    88License URI: https://www.gnu.org/licenses
Note: See TracChangeset for help on using the changeset viewer.