From 8ef5b57c66877d967b738f93b83439c70d869961 Mon Sep 17 00:00:00 2001 From: Kirtan Gajjar <8456197+kirtangajjar@users.noreply.github.com> Date: Thu, 4 Jul 2024 05:31:25 +0530 Subject: [PATCH] Add trailing slash to cat urls --- includes/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/utils.php b/includes/utils.php index 642c02bdc..fc312c3cc 100644 --- a/includes/utils.php +++ b/includes/utils.php @@ -590,7 +590,7 @@ function get_edit_link( $args, $link_text, $css_class = '' ) { if ( is_internal_connection() ) { $url = add_query_arg( $args, get_admin_url( null, 'edit.php' ) ); } else { - $url = add_query_arg( $args, get_root_url() . 'wp-admin/edit.php' ); + $url = add_query_arg( $args, trailingslashit( get_root_url() ) . 'wp-admin/edit.php' ); } $class_html = '';