@@ -69,7 +69,7 @@ public static function init() {
6969 }
7070
7171 /**
72- * Display wp- admin menu notices about configuration problems or conflicts.
72+ * Display admin menu notices about configuration problems or conflicts.
7373 */
7474 public static function admin_notices () {
7575 $ current_screen = get_current_screen ();
@@ -88,7 +88,7 @@ public static function admin_notices() {
8888 }
8989
9090 /**
91- * Display one wp- admin menu notice about configuration problems or conflicts.
91+ * Display one admin menu notice about configuration problems or conflicts.
9292 *
9393 * @param string $admin_notice The notice to display.
9494 * @param string $level The level of the notice (error, warning, success, info).
@@ -196,29 +196,29 @@ public static function save_user_settings( $user_id ) {
196196 * @param string $hook_suffix The current page.
197197 */
198198 public static function enqueue_scripts ( $ hook_suffix ) {
199- $ asset_data = include ACTIVITYPUB_PLUGIN_DIR . 'build/js /header-image.asset.php ' ;
199+ $ asset_data = include ACTIVITYPUB_PLUGIN_DIR . 'build/wp-admin /header-image.asset.php ' ;
200200
201201 wp_register_script (
202202 'activitypub-header-image ' ,
203- plugins_url ( 'build/js /header-image.js ' , ACTIVITYPUB_PLUGIN_FILE ),
203+ plugins_url ( 'build/wp-admin /header-image.js ' , ACTIVITYPUB_PLUGIN_FILE ),
204204 $ asset_data ['dependencies ' ],
205205 $ asset_data ['version ' ],
206206 false
207207 );
208208
209209 if ( false !== strpos ( $ hook_suffix , 'activitypub ' ) ) {
210210 wp_enqueue_style (
211- 'activitypub-wp- admin-styles ' ,
211+ 'activitypub-admin-styles ' ,
212212 plugins_url ( 'build/wp-wp-admin/style.scss ' , ACTIVITYPUB_PLUGIN_FILE ),
213213 array (),
214214 ACTIVITYPUB_PLUGIN_VERSION
215215 );
216- wp_style_add_data ( 'activitypub-wp- admin-styles ' , 'rtl ' , 'replace ' );
216+ wp_style_add_data ( 'activitypub-admin-styles ' , 'rtl ' , 'replace ' );
217217
218- $ asset_data = include ACTIVITYPUB_PLUGIN_DIR . 'build/js/ wp-admin.asset.php ' ;
218+ $ asset_data = include ACTIVITYPUB_PLUGIN_DIR . 'build/wp-admin/script .asset.php ' ;
219219 wp_enqueue_script (
220- 'activitypub-wp- admin-script ' ,
221- plugins_url ( 'build/wp-wp- admin/script.js ' , ACTIVITYPUB_PLUGIN_FILE ),
220+ 'activitypub-admin-script ' ,
221+ plugins_url ( 'build/wp-admin/script.js ' , ACTIVITYPUB_PLUGIN_FILE ),
222222 $ asset_data ['dependencies ' ],
223223 $ asset_data ['version ' ],
224224 false
@@ -232,12 +232,12 @@ public static function enqueue_scripts( $hook_suffix ) {
232232
233233 if ( 'index.php ' === $ hook_suffix ) {
234234 wp_enqueue_style (
235- 'activitypub-wp- admin-styles ' ,
236- plugins_url ( 'build/wp-wp- admin/style.scss ' , ACTIVITYPUB_PLUGIN_FILE ),
235+ 'activitypub-admin-styles ' ,
236+ plugins_url ( 'build/wp-admin/style.scss ' , ACTIVITYPUB_PLUGIN_FILE ),
237237 array (),
238238 ACTIVITYPUB_PLUGIN_VERSION
239239 );
240- wp_style_add_data ( 'activitypub-wp- admin-styles ' , 'rtl ' , 'replace ' );
240+ wp_style_add_data ( 'activitypub-admin-styles ' , 'rtl ' , 'replace ' );
241241 }
242242 }
243243
@@ -625,7 +625,7 @@ public static function plugin_update_message( $data, $update ) {
625625 }
626626
627627 /**
628- * Adds meta box on wp-wp- admin/tools.php.
628+ * Adds meta box on wp-admin/tools.php.
629629 */
630630 public static function tool_box () {
631631 \load_template ( ACTIVITYPUB_PLUGIN_DIR . 'templates/toolbox.php ' );
0 commit comments