Plugin Directory

Changeset 594261


Ignore:
Timestamp:
09/04/2012 03:02:12 AM (13 years ago)
Author:
aprea
Message:

Released version 0.1.1 - small code changes and clean up

Location:
adoption
Files:
19 added
2 edited

Legend:

Unmodified
Added
Removed
  • adoption/trunk/adoption.php

    r587707 r594261  
    2222
    2323        // Enqueue scripts only for dashboard (i.e. /wp-admin/)
    24         add_action( 'admin_head-index.php', array( $this, 'enqueue_dashboard_resources' ) );
     24        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_dashboard_resources' ) );
    2525       
    2626        // Handle ajax request for logged in users
     
    7171    }
    7272   
    73     function enqueue_dashboard_resources(){
     73    function enqueue_dashboard_resources( $hook ){
     74   
     75        if( $hook != 'index.php' )
     76            return;
    7477   
    7578        // Enqueue our scripts scripts
     
    545548}
    546549
    547 $adoption_instance = new Adoption();
     550// Start up this plugin
     551add_action( 'init', 'RegenerateThumbnails' );
     552function RegenerateThumbnails() {
     553    global $Adoption;
     554    $Adoption = new Adoption();
     555}
    548556
    549557?>
  • adoption/trunk/readme.txt

    r587725 r594261  
    1515**This plugin requires PHP 5.3 or later, please check with your web host if you're unsure.**
    1616
    17 Adoption uses the timezone that is set in the WordPress admin panel. Ensure you have set your local timezone in Settings > General.
     17Adoption uses the timezone that is set in the WordPres admin panel. Ensure you have set your local timezone in Settings > General.
    1818
    1919Features:
     
    5454== Changelog ==
    5555
     56= 0.1.1 =
     57* Code clean up.
     58
    5659= 0.1 =
    57 Initial release.
     60* Initial release.
Note: See TracChangeset for help on using the changeset viewer.