Skip to content

Commit c6513cf

Browse files
committed
NamingConventions/ValidPostTypeSlug: update the reserved post types list based on WP 6.5-RC3
Based on a scan of WP Core at commit WordPress/wordpress-develop@3595704 using a preliminary sniff created for issue 1803.
1 parent ca426e7 commit c6513cf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

WordPress/Sniffs/NamingConventions/ValidPostTypeSlugSniff.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ final class ValidPostTypeSlugSniff extends AbstractFunctionParameterSniff {
6363
*
6464
* Source: {@link https://developer.wordpress.org/reference/functions/register_post_type/#reserved-post-types}
6565
*
66-
* Last update: July 2023 for WP 6.3 at https://github.com/WordPress/wordpress-develop/commit/6281ce432c50345a57768bf53854d9b65b6cdd52
66+
* {@internal To be updated after every major release. Last updated for WordPress 6.5-RC3.}
6767
*
6868
* @since 2.2.0
6969
*
@@ -84,6 +84,8 @@ final class ValidPostTypeSlugSniff extends AbstractFunctionParameterSniff {
8484
'theme' => true, // Not a WP post type, but prevents other problems.
8585
'user_request' => true,
8686
'wp_block' => true,
87+
'wp_font_face' => true,
88+
'wp_font_family' => true,
8789
'wp_global_styles' => true,
8890
'wp_navigation' => true,
8991
'wp_template' => true,

0 commit comments

Comments
 (0)