Tag regexp in add_rewrite_rules for hierarchical taxonomy
-
Hi,
Could you change the regexp for the tag in
wp-includes/class-wp-taxonomy.php -> public function add_rewrite_rules() ->$tag = '(.+?)';
to exclude the links like:
https://www.ads-software.com/news/category/xcxcbxcbvxcvbxcvbxcvbxcvb/development/ and
https://www.ads-software.com/news/category/xcxcbxcbvxcvbxcvbxcv/development/ and
https://www.ads-software.com/news/category/xcxcbxcbvxcvbx/development/
maybe to ‘^(([A-Za-z0-9-_]+?/?)+?)’, but I’m not sureAnd maybe it’s better to take into account the start ^ and end $ of the string to all other rules
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Tag regexp in add_rewrite_rules for hierarchical taxonomy’ is closed to new replies.