Skip to content

Commit 1f1578f

Browse files
committed
Fix hook namespace
1 parent b4cb251 commit 1f1578f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

admin/admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public function meta_box_callback( $post ): void {
256256
* @since 1.6.0
257257
*/
258258
$roles = \apply_filters(
259-
'Yoast_Comment_Hacks\notification_roles',
259+
'comment_experience\notification_roles',
260260
[ 'contributor', 'author', 'editor', 'administrator', 'super-admin' ]
261261
);
262262

admin/views/config-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,4 +516,4 @@ class="regular-text"
516516
*
517517
* @since 1.6.0
518518
*/
519-
do_action( 'Yoast_Comment_Hacks\admin_footer' );
519+
do_action( 'comment_experience\admin_footer' );

inc/hacks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function comment_redirect( string $url, WP_Comment $comment ): string {
247247
*
248248
* @since 1.6.0
249249
*/
250-
$url = \apply_filters( 'Yoast_Comment_Hacks\redirect', $url, $comment, 'first' );
250+
$url = \apply_filters( 'comment_experience\redirect', $url, $comment, 'first' );
251251
}
252252
}
253253

@@ -265,7 +265,7 @@ public function comment_redirect( string $url, WP_Comment $comment ): string {
265265
*
266266
* @since 2.2.0
267267
*/
268-
$url = \apply_filters( 'Yoast_Comment_Hacks\redirect', $url, $comment, 'repeat' );
268+
$url = \apply_filters( 'comment_experience\redirect', $url, $comment, 'repeat' );
269269
}
270270

271271
return $url;

0 commit comments

Comments
 (0)