Plugin Directory

Changeset 1612051


Ignore:
Timestamp:
03/10/2017 03:46:15 PM (9 years ago)
Author:
lowest
Message:

Bug fixes

Location:
theme-manager/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • theme-manager/trunk/readme.txt

    r1598750 r1612051  
    2727== Changelog ==
    2828
     29= 2.0.1 =
     30* Fixed bugs
     31
    2932= 2.0 =
    3033* Added a new design
  • theme-manager/trunk/theme-manager.php

    r1598784 r1612051  
    44 * Plugin URI: https://wordpress.org/plugins/theme-manager/
    55 * Description: Theme Manager allows you to remove your themes straight from your dashboard.
    6  * Version: 2.0
     6 * Version: 2.0.1
    77 * Author: Mitch
    88 * Author URI: https://profiles.wordpress.org/lowest
     
    3131if ( ! defined( 'TMANAGER_FILE' ) ) { define( 'TMANAGER_FILE', __FILE__ ); }
    3232
    33 if ( ! defined( 'TMANAGER_V' ) ) { define( 'TMANAGER_V', '2.0' ); }
     33if ( ! defined( 'TMANAGER_V' ) ) { define( 'TMANAGER_V', '2.0.1' ); }
    3434
    3535function thememanager_menu() {
     
    4949    <div class="wrap">
    5050        <h1>Theme Manager</h1>
    51         <div id="thememanager-result"></div>
    5251        <p><?php
    5352        printf( __('You have %1$s themes installed. %2$s is currently activated running version %3$s.', 'thememanager'), count($themes), $current->Name, $current->Version ); ?></p>
     
    127126}
    128127
    129 function thememanager_loadscripts() {
    130     wp_enqueue_script( "ajax-test", plugins_url( 'assets/js/ajax.js', TMANAGER_FILE ), array( 'jquery' ) );
    131     wp_localize_script( 'ajax-test', 'thememanager', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );
    132 }
    133 add_action('wp_print_scripts', 'thememanager_loadscripts');
    134 
    135128function thememanager_process() {
    136129    if ( isset( $_POST["theme"] ) ) {
     
    153146        wp_register_style( 'thememanager-css', plugins_url( 'assets/css/app.css', TMANAGER_FILE ), false, '1.0.0' );
    154147        wp_enqueue_style( 'thememanager-css' );
     148        wp_enqueue_script( "ajax-thememanager", plugins_url( 'assets/js/ajax.js', TMANAGER_FILE ), array( 'jquery' ) );
     149        wp_localize_script( 'ajax-thememanager', 'thememanager', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );
    155150    }
    156151}
Note: See TracChangeset for help on using the changeset viewer.