Skip to content

Commit

Permalink
rename more things
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jan 22, 2024
1 parent f258cd9 commit 77d94c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<!-- Provide the plugin specific prefix for use with namespace and hook names. -->
<property name="prefixes" type="array">
<element value="JoostBlog\WP\Comment"/>
<element value="emiliaprojects_comment"/>
<element value="comment_hacks"/>
</property>
</properties>
</rule>
Expand Down
6 changes: 3 additions & 3 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 = 'emiliaprojects-comment-hacks';
private string $hook = 'comment-hacks';

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

if ( $page === 'emiliaprojects-comment-hacks' ) {
if ( $page === 'comment-hacks' ) {
$min = '.min';
if ( \defined( 'SCRIPT_DEBUG' ) && \SCRIPT_DEBUG ) {
$min = '';
Expand All @@ -237,7 +237,7 @@ public function enqueue(): void {

\wp_enqueue_script(
'emiliaprojects-comment-hacks-admin-js',
\plugins_url( 'admin/assets/js/emiliaprojects-comment-hacks' . $min . '.js', \JOOST_COMMENT_HACKS_FILE ),
\plugins_url( 'admin/assets/js/comment-hacks' . $min . '.js', \JOOST_COMMENT_HACKS_FILE ),
[],
\JOOST_COMMENT_HACKS_VERSION,
true
Expand Down
2 changes: 1 addition & 1 deletion inc/hacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Hacks {
/**
* Holds the plugins option name.
*/
public static string $option_name = 'emiliaprojects_comment_hacks';
public static string $option_name = 'comment_hacks';

/**
* Holds the plugins options.
Expand Down

0 comments on commit 77d94c0

Please sign in to comment.