From b5fc14700a98dc44c43ff14c292af3e076858cb4 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 3 Jul 2017 13:50:34 +0200 Subject: [PATCH] give error details on permalink creation --- admin/include/functions_permalinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/include/functions_permalinks.php b/admin/include/functions_permalinks.php index db0679661..da35ef277 100644 --- a/admin/include/functions_permalinks.php +++ b/admin/include/functions_permalinks.php @@ -140,7 +140,7 @@ function set_cat_permalink( $cat_id, $permalink, $save ) if ( $sanitized_permalink != $permalink or preg_match( '#^(\d)+(-.*)?$#', $permalink) ) { - $page['errors'][] = l10n('The permalink name must be composed of a-z, A-Z, 0-9, "-", "_" or "/". It must not be numeric or start with number followed by "-"'); + $page['errors'][] = '{'.$permalink.'} '.l10n('The permalink name must be composed of a-z, A-Z, 0-9, "-", "_" or "/". It must not be numeric or start with number followed by "-"'); return false; }