Changeset 1612051
- Timestamp:
- 03/10/2017 03:46:15 PM (9 years ago)
- Location:
- theme-manager/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
theme-manager.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
theme-manager/trunk/readme.txt
r1598750 r1612051 27 27 == Changelog == 28 28 29 = 2.0.1 = 30 * Fixed bugs 31 29 32 = 2.0 = 30 33 * Added a new design -
theme-manager/trunk/theme-manager.php
r1598784 r1612051 4 4 * Plugin URI: https://wordpress.org/plugins/theme-manager/ 5 5 * Description: Theme Manager allows you to remove your themes straight from your dashboard. 6 * Version: 2.0 6 * Version: 2.0.1 7 7 * Author: Mitch 8 8 * Author URI: https://profiles.wordpress.org/lowest … … 31 31 if ( ! defined( 'TMANAGER_FILE' ) ) { define( 'TMANAGER_FILE', __FILE__ ); } 32 32 33 if ( ! defined( 'TMANAGER_V' ) ) { define( 'TMANAGER_V', '2.0 ' ); }33 if ( ! defined( 'TMANAGER_V' ) ) { define( 'TMANAGER_V', '2.0.1' ); } 34 34 35 35 function thememanager_menu() { … … 49 49 <div class="wrap"> 50 50 <h1>Theme Manager</h1> 51 <div id="thememanager-result"></div>52 51 <p><?php 53 52 printf( __('You have %1$s themes installed. %2$s is currently activated running version %3$s.', 'thememanager'), count($themes), $current->Name, $current->Version ); ?></p> … … 127 126 } 128 127 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 135 128 function thememanager_process() { 136 129 if ( isset( $_POST["theme"] ) ) { … … 153 146 wp_register_style( 'thememanager-css', plugins_url( 'assets/css/app.css', TMANAGER_FILE ), false, '1.0.0' ); 154 147 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' ) ) ); 155 150 } 156 151 }
Note: See TracChangeset
for help on using the changeset viewer.