Plugin Directory

Changeset 914245


Ignore:
Timestamp:
05/14/2014 10:18:12 PM (12 years ago)
Author:
dkukral
Message:

Upgraded jquery-ui to 1.10 and verified compat with WP 3.9.1

Location:
author-stats/trunk
Files:
2 added
3 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • author-stats/trunk/author-stats.php

    r525914 r914245  
    44Plugin URI: http://yourdomain.com/
    55Description: Displays various metrics for a selected author
    6 Version: 1.1.3
     6Version: 1.2
    77Author: Don Kukral
    88Author URI: http://yourdomain.com
     
    3030function author_stats_admin_scripts() {
    3131    if ((array_key_exists('page', $_GET)) && ($_GET['page'] == 'author-stats')) {
    32         wp_enqueue_script("ui", AUTHOR_STATS_URL . "js/jquery-ui-1.8.17.custom.min.js", array('jquery'), '1.0');   
     32        wp_enqueue_script("ui", AUTHOR_STATS_URL . "js/jquery-ui-1.10.4.custom.min.js", array('jquery'), '1.0');   
    3333    } else {
    3434        wp_deregister_script("ui");
     
    3939function author_stats_admin_styles() {
    4040    if ((array_key_exists('page', $_GET)) && ($_GET['page'] == 'author-stats')) {
    41         wp_enqueue_style( 'author-stats-css', AUTHOR_STATS_URL . 'css/jquery-ui-1.8.17.custom.css', false );
     41        wp_enqueue_style( 'author-stats-css', AUTHOR_STATS_URL . 'css/jquery-ui-1.10.4.custom.min.css', false );
    4242    } else {
    4343        wp_deregister_style("author-stats-css");
  • author-stats/trunk/license.txt

    r493595 r914245  
    11WordPress - Web publishing software
    22
    3 Copyright 2012 by the contributors
     3Copyright 2014 by the contributors
    44
    55This program is free software; you can redistribute it and/or modify
     
    3232  WordPress - Web publishing software
    3333
    34   Copyright 2003-2012 by the contributors
     34  Copyright 2003-2014 by the contributors
    3535
    3636  WordPress is released under the GPL
  • author-stats/trunk/php/stats.php

    r498201 r914245  
    8585                    .addClass( "ui-widget ui-widget-content ui-corner-left" );
    8686
    87                 input.data( "autocomplete" )._renderItem = function( ul, item ) {
     87                input.data( "ui-autocomplete" )._renderItem = function( ul, item ) {
    8888                    return $( "<li></li>" )
    8989                        .data( "item.autocomplete", item )
     
    209209          array_push($d, array('id' => $row->ID, 'c' => count($result)));
    210210      }
    211 
    212       return intval(array_sum($c)/count($c));
     211      if (count($c)) {
     212        return intval(array_sum($c)/count($c));
     213      } else {
     214        return 0;
     215      }
    213216  }
    214217 
  • author-stats/trunk/readme.txt

    r621890 r914245  
    11=== Author Stats ===
    2 Contributors: jboydston, dkukral, Droyal
     2Contributors: jboydston, dkukral
    33Tags: author, statistics
    44Requires at least: 3.0
    5 Tested up to: 3.3.1
    6 Stable Tag: 1.1.3
     5Tested up to: 3.9.1
     6Stable Tag: 1.2
    77
    88Plugin for WordPress displays various author metrics.
     
    4343
    4444== Changelog ==
     45= 1.2 =
     46Upgraded jquery-ui to 1.10 and verified compat with WP 3.9.1
    4547
    4648= 1.1.3 =
Note: See TracChangeset for help on using the changeset viewer.