From f855b481c03de69f4a317db22257ffbbb2830e88 Mon Sep 17 00:00:00 2001 From: Aristeides Stathopoulos Date: Tue, 23 Jan 2024 12:44:05 +0200 Subject: [PATCH] replace `yst` with `epch` (Emilia Projects Comment Hacks) --- .phpcs.xml.dist | 2 +- admin/comment-parent.php | 2 +- admin/views/comment-parent-box.php | 4 ++-- inc/email-links.php | 18 +++++++++--------- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist index c5efad8..a0644d6 100644 --- a/.phpcs.xml.dist +++ b/.phpcs.xml.dist @@ -120,7 +120,7 @@ - + diff --git a/admin/comment-parent.php b/admin/comment-parent.php index 26ae76c..cd1ebfc 100644 --- a/admin/comment-parent.php +++ b/admin/comment-parent.php @@ -47,7 +47,7 @@ public function load_comment_parent_box() { * Updates the comment parent field. */ public function update_comment_parent() { - $comment_parent = \filter_input( \INPUT_POST, 'yst_comment_parent', \FILTER_VALIDATE_INT ); + $comment_parent = \filter_input( \INPUT_POST, 'epch_comment_parent', \FILTER_VALIDATE_INT ); $comment_id = \filter_input( \INPUT_POST, 'comment_ID', \FILTER_VALIDATE_INT ); $action = \filter_input( \INPUT_POST, 'action' ); diff --git a/admin/views/comment-parent-box.php b/admin/views/comment-parent-box.php index 1e5386d..4cf4120 100644 --- a/admin/views/comment-parent-box.php +++ b/admin/views/comment-parent-box.php @@ -8,10 +8,10 @@
- + - +
diff --git a/inc/email-links.php b/inc/email-links.php index 3cb90e8..5c14b8b 100644 --- a/inc/email-links.php +++ b/inc/email-links.php @@ -75,23 +75,23 @@ public function admin_bar_comment_link(): void { // We can't set the 'href' attribute to the $url as then esc_url would garble the mailto link. // So we do a nasty bit of JS workaround. The reason we grab the href from the alternate link is // so browser extensions like the Google Mail one that change mailto: links still work. - echo ''; $wp_admin_bar->add_menu( [ - 'id' => 'yst-email-commenters', + 'id' => 'epch-email-commenters', 'title' => '', 'href' => '#', - 'meta' => [ 'onclick' => 'yst_email_commenters(event)' ], + 'meta' => [ 'onclick' => 'epch_email_commenters(event)' ], ] ); } @@ -106,13 +106,13 @@ public function wp_head_css(): void { echo ' ';