mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-23 04:13:53 +02:00
Merge pull request #25 from tbwiii/master
Listed jQuery as a dependency for both JavaScripts
This commit is contained in:
commit
5d70b7e79e
1 changed files with 35 additions and 35 deletions
|
@ -126,7 +126,7 @@ class PluginName {
|
||||||
public function register_admin_scripts() {
|
public function register_admin_scripts() {
|
||||||
|
|
||||||
// TODO: Change 'plugin-name' to the name of your plugin
|
// TODO: Change 'plugin-name' to the name of your plugin
|
||||||
wp_enqueue_script( 'plugin-name-admin-script', plugins_url( 'plugin-name/js/admin.js' ) );
|
wp_enqueue_script( 'plugin-name-admin-script', plugins_url( 'plugin-name/js/admin.js' ), array('jquery') );
|
||||||
|
|
||||||
} // end register_admin_scripts
|
} // end register_admin_scripts
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ class PluginName {
|
||||||
public function register_plugin_scripts() {
|
public function register_plugin_scripts() {
|
||||||
|
|
||||||
// TODO: Change 'plugin-name' to the name of your plugin
|
// TODO: Change 'plugin-name' to the name of your plugin
|
||||||
wp_enqueue_script( 'plugin-name-plugin-script', plugins_url( 'plugin-name/js/display.js' ) );
|
wp_enqueue_script( 'plugin-name-plugin-script', plugins_url( 'plugin-name/js/display.js' ), array('jquery') );
|
||||||
|
|
||||||
} // end register_plugin_scripts
|
} // end register_plugin_scripts
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue