Changeset 1963446
- Timestamp:
- 10/26/2018 10:34:51 AM (7 years ago)
- Location:
- nothing-much/trunk
- Files:
-
- 2 added
- 1 edited
-
js (added)
-
js/nothing-much.js (added)
-
nothing-much.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nothing-much/trunk/nothing-much.php
r1648472 r1963446 14 14 add_action( 'admin_init', array( $this, 'load_textdomain' ) ); 15 15 add_action( 'admin_notices', array( $this, 'admin_notices' ) ); 16 add_action( 'wp_enqueue_scripts', array( $this, 'admin_enqueue_script' ) ); 16 17 } 17 18 … … 25 26 . '</div>'; 26 27 } 28 29 public function enqueue_script() { 30 wp_enqueue_script( 'nothing-much-script', plugins_url( '/js/newscript.js' , __FILE__ ) ); 31 32 if ( function_exists( 'wp_set_script_translations' ) ) { 33 wp_set_script_translations( 'nothing-much-script', 'nothing-much' ); 34 } 35 } 27 36 } 28 37
Note: See TracChangeset
for help on using the changeset viewer.