Fix js assets enqueue
This commit is contained in:
parent
5dbf365c58
commit
fe7def2c84
1 changed files with 2 additions and 2 deletions
|
@ -191,9 +191,9 @@ class Admin {
|
||||||
if ( 'edit-comments.php' === $hook || 'tools_page_activitypub_tools' === $hook ) {
|
if ( 'edit-comments.php' === $hook || 'tools_page_activitypub_tools' === $hook ) {
|
||||||
\wp_enqueue_script(
|
\wp_enqueue_script(
|
||||||
'activitypub_actions',
|
'activitypub_actions',
|
||||||
\plugin_dir_url( __FILE__ ) . '/assets/js/activitypub.js',
|
\plugin_dir_url( ACTIVITYPUB_PLUGIN ) . '/assets/js/activitypub.js',
|
||||||
array( 'jquery' ),
|
array( 'jquery' ),
|
||||||
\filemtime( \plugin_dir_path( __FILE__ ) . '/assets/js/activitypub.js' ),
|
\filemtime( \plugin_dir_path( ACTIVITYPUB_PLUGIN ) . 'assets/js/activitypub.js' ),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue