Skip to content

Commit

Permalink
rename page
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jan 22, 2024
1 parent 3c543cd commit 7cdafc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Admin {
/**
* The plugin page hook.
*/
private string $hook = 'yoast-comment-hacks';
private string $hook = 'emiliacapital-comment-hacks';

/**
* Holds the plugins options.
Expand Down Expand Up @@ -222,22 +222,22 @@ public function init(): void {
public function enqueue(): void {
$page = \filter_input( \INPUT_GET, 'page' );

if ( $page === 'yoast-comment-hacks' ) {
if ( $page === 'emiliacapital-comment-hacks' ) {
$min = '.min';
if ( \defined( 'SCRIPT_DEBUG' ) && \SCRIPT_DEBUG ) {
$min = '';
}

\wp_enqueue_style(
'yoast-comment-hacks-admin-css',
'emiliacapital-comment-hacks-admin-css',
\plugins_url( 'admin/assets/css/dist/comment-hacks.css', \JOOST_COMMENT_HACKS_FILE ),
[],
\JOOST_COMMENT_HACKS_VERSION
);

\wp_enqueue_script(
'yoast-comment-hacks-admin-js',
\plugins_url( 'admin/assets/js/yoast-comment-hacks' . $min . '.js', \JOOST_COMMENT_HACKS_FILE ),
'emiliacapital-comment-hacks-admin-js',
\plugins_url( 'admin/assets/js/emiliacapital-comment-hacks' . $min . '.js', \JOOST_COMMENT_HACKS_FILE ),
[],
\JOOST_COMMENT_HACKS_VERSION,
true
Expand Down

0 comments on commit 7cdafc7

Please sign in to comment.