Skip to content

Commit 61b6ca5

Browse files
use moment from core
1 parent e9c48e0 commit 61b6ca5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

classes/Visualizer/Render/Sidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public function getLibrary() {
502502
*/
503503
protected function load_dependent_assets( $libs ) {
504504
if ( in_array( 'moment', $libs, true ) && ! wp_script_is( 'moment', 'registered' ) ) {
505-
wp_register_script( 'moment', VISUALIZER_ABSURL . 'js/lib/moment.min.js', array(), Visualizer_Plugin::VERSION );
505+
wp_register_script( 'moment' );
506506
}
507507

508508
if ( in_array( 'numeral', $libs, true ) && ! wp_script_is( 'numeral', 'registered' ) ) {

0 commit comments

Comments
 (0)