From cdb29b5a7c145ea30a84bcdf254b4aafaccf349c Mon Sep 17 00:00:00 2001 From: Juliette <663378+jrfnl@users.noreply.github.com> Date: Sat, 27 Jul 2024 15:10:40 +0200 Subject: [PATCH] Documentation: capitalization consistency fixes (#2469) Follow up on 2468 Darn! Looks like I forgot to push an update to the commit. Sorry about that. This adds the capitalization consistency fixes for the `` `title` attributes. Co-authored-by: jrfnl --- .../MultipleStatementAlignmentStandard.xml | 2 +- .../DateTime/CurrentTimeTimestampStandard.xml | 8 ++++---- .../PrefixAllGlobalsStandard.xml | 4 ++-- .../ValidFunctionNameStandard.xml | 8 ++++---- .../ValidHookNameStandard.xml | 8 ++++---- .../ValidPostTypeSlugStandard.xml | 20 +++++++++---------- WordPress/Docs/PHP/IniSetStandard.xml | 8 ++++---- WordPress/Docs/PHP/StrictInArrayStandard.xml | 12 +++++------ WordPress/Docs/WP/CapabilitiesStandard.xml | 12 +++++------ WordPress/Docs/WP/ClassNameCaseStandard.xml | 4 ++-- .../Docs/WP/DeprecatedClassesStandard.xml | 4 ++-- .../Docs/WP/DeprecatedFunctionsStandard.xml | 4 ++-- .../WP/DeprecatedParameterValuesStandard.xml | 4 ++-- .../Docs/WP/DeprecatedParametersStandard.xml | 8 ++++---- .../CastStructureSpacingStandard.xml | 4 ++-- .../WhiteSpace/OperatorSpacingStandard.xml | 12 +++++------ 16 files changed, 61 insertions(+), 61 deletions(-) diff --git a/WordPress/Docs/Arrays/MultipleStatementAlignmentStandard.xml b/WordPress/Docs/Arrays/MultipleStatementAlignmentStandard.xml index 85e0c53120..35eb91372f 100644 --- a/WordPress/Docs/Arrays/MultipleStatementAlignmentStandard.xml +++ b/WordPress/Docs/Arrays/MultipleStatementAlignmentStandard.xml @@ -9,7 +9,7 @@ ]]> - + => 22 ); $bar = array( 'year' => $current_year ); diff --git a/WordPress/Docs/DateTime/CurrentTimeTimestampStandard.xml b/WordPress/Docs/DateTime/CurrentTimeTimestampStandard.xml index e5a2c1bcb7..2dd3e9fb71 100644 --- a/WordPress/Docs/DateTime/CurrentTimeTimestampStandard.xml +++ b/WordPress/Docs/DateTime/CurrentTimeTimestampStandard.xml @@ -9,24 +9,24 @@ ]]> - + time(); ]]> - + current_time( 'timestamp', true ); ]]> - + 'Y-m-d' ); ]]> - + current_time( 'U', false ); ]]> diff --git a/WordPress/Docs/NamingConventions/PrefixAllGlobalsStandard.xml b/WordPress/Docs/NamingConventions/PrefixAllGlobalsStandard.xml index 06a82f88fd..2da45692c5 100644 --- a/WordPress/Docs/NamingConventions/PrefixAllGlobalsStandard.xml +++ b/WordPress/Docs/NamingConventions/PrefixAllGlobalsStandard.xml @@ -29,7 +29,7 @@ apply_filter( ); ]]> - + 'PLUGIN_VERSION', '1.0' ); @@ -68,7 +68,7 @@ apply_filter( ); ]]> - + Admin; diff --git a/WordPress/Docs/NamingConventions/ValidFunctionNameStandard.xml b/WordPress/Docs/NamingConventions/ValidFunctionNameStandard.xml index 00b9bd4f2a..03ff174c08 100644 --- a/WordPress/Docs/NamingConventions/ValidFunctionNameStandard.xml +++ b/WordPress/Docs/NamingConventions/ValidFunctionNameStandard.xml @@ -9,26 +9,26 @@ ]]> - + prefix_function_name() {} ]]> - + Prefix_Function_NAME() {} ]]> - + method_name() {} } ]]> - + methodName() {} diff --git a/WordPress/Docs/NamingConventions/ValidHookNameStandard.xml b/WordPress/Docs/NamingConventions/ValidHookNameStandard.xml index 387769d91f..4130dea7cb 100644 --- a/WordPress/Docs/NamingConventions/ValidHookNameStandard.xml +++ b/WordPress/Docs/NamingConventions/ValidHookNameStandard.xml @@ -9,24 +9,24 @@ ]]> - + 'prefix_hook_name', $var ); ]]> - + 'Prefix_Hook_NAME', $var ); ]]> - + 'prefix_hook_name', $var ); ]]> - + 'prefix\hook-name', $var ); ]]> diff --git a/WordPress/Docs/NamingConventions/ValidPostTypeSlugStandard.xml b/WordPress/Docs/NamingConventions/ValidPostTypeSlugStandard.xml index fe88dfd6e7..639dda54ee 100644 --- a/WordPress/Docs/NamingConventions/ValidPostTypeSlugStandard.xml +++ b/WordPress/Docs/NamingConventions/ValidPostTypeSlugStandard.xml @@ -9,7 +9,7 @@ ]]> - + 'my_short_slug', @@ -17,7 +17,7 @@ register_post_type( ); ]]> - + 'my_own_post_type_too_long', @@ -32,7 +32,7 @@ register_post_type( ]]> - + 'my_post_type_slug', @@ -40,7 +40,7 @@ register_post_type( ); ]]> - + 'my/post/type/slug', @@ -55,7 +55,7 @@ register_post_type( ]]> - + 'my_post_active', @@ -63,7 +63,7 @@ register_post_type( ); ]]> - + "my_post_{$status}", @@ -78,7 +78,7 @@ register_post_type( ]]> - + 'prefixed_author', @@ -86,7 +86,7 @@ register_post_type( ); ]]> - + 'author', @@ -101,7 +101,7 @@ register_post_type( ]]> - + 'prefixed_author', @@ -109,7 +109,7 @@ register_post_type( ); ]]> - + 'wp_author', diff --git a/WordPress/Docs/PHP/IniSetStandard.xml b/WordPress/Docs/PHP/IniSetStandard.xml index 328e65c772..3b8bfbeb24 100644 --- a/WordPress/Docs/PHP/IniSetStandard.xml +++ b/WordPress/Docs/PHP/IniSetStandard.xml @@ -9,12 +9,12 @@ ]]> - + - + 'short_open_tag', 'off' ); ]]> @@ -26,12 +26,12 @@ ini_set( 'short_open_tag', 'off' ); ]]> - + wp_raise_memory_limit(); ]]> - + 'memory_limit', '256M' ); ]]> diff --git a/WordPress/Docs/PHP/StrictInArrayStandard.xml b/WordPress/Docs/PHP/StrictInArrayStandard.xml index 744ec9ed97..e280a92845 100644 --- a/WordPress/Docs/PHP/StrictInArrayStandard.xml +++ b/WordPress/Docs/PHP/StrictInArrayStandard.xml @@ -11,13 +11,13 @@ ]]> - + true ) ) {} ]]> - + ) ) {} @@ -26,12 +26,12 @@ if ( in_array( $value, $array ) ) {} - + true ); ]]> - + ); ]]> @@ -39,12 +39,12 @@ $key = array_search( 1, $array ); - + true ); ]]> - + ); ]]> diff --git a/WordPress/Docs/WP/CapabilitiesStandard.xml b/WordPress/Docs/WP/CapabilitiesStandard.xml index 987a6c3d55..c864664530 100644 --- a/WordPress/Docs/WP/CapabilitiesStandard.xml +++ b/WordPress/Docs/WP/CapabilitiesStandard.xml @@ -9,12 +9,12 @@ ]]> - + 'manage_sites' ) ) { } ]]> - + 'manage_site', $user->ID ); ]]> @@ -26,7 +26,7 @@ map_meta_cap( 'manage_site', $user->ID ); ]]> - + - + - + 'read' ) ) { } ]]> - + 'level_6' ) ) { } ]]> diff --git a/WordPress/Docs/WP/ClassNameCaseStandard.xml b/WordPress/Docs/WP/ClassNameCaseStandard.xml index b17ec3f955..2d66d9fcff 100644 --- a/WordPress/Docs/WP/ClassNameCaseStandard.xml +++ b/WordPress/Docs/WP/ClassNameCaseStandard.xml @@ -9,12 +9,12 @@ ]]> - + - + diff --git a/WordPress/Docs/WP/DeprecatedClassesStandard.xml b/WordPress/Docs/WP/DeprecatedClassesStandard.xml index 2de4e18e8b..cf4dc07fca 100644 --- a/WordPress/Docs/WP/DeprecatedClassesStandard.xml +++ b/WordPress/Docs/WP/DeprecatedClassesStandard.xml @@ -9,12 +9,12 @@ ]]> - + WP_User_Query(); ]]> - + WP_User_Search(); // Deprecated WP 3.1. ]]> diff --git a/WordPress/Docs/WP/DeprecatedFunctionsStandard.xml b/WordPress/Docs/WP/DeprecatedFunctionsStandard.xml index 7bb63d8b99..9b6071eddc 100644 --- a/WordPress/Docs/WP/DeprecatedFunctionsStandard.xml +++ b/WordPress/Docs/WP/DeprecatedFunctionsStandard.xml @@ -9,12 +9,12 @@ ]]> - + get_sites(); ]]> - + wp_get_sites(); // Deprecated WP 4.6. ]]> diff --git a/WordPress/Docs/WP/DeprecatedParameterValuesStandard.xml b/WordPress/Docs/WP/DeprecatedParameterValuesStandard.xml index de9164c3ef..00ef2c2c77 100644 --- a/WordPress/Docs/WP/DeprecatedParameterValuesStandard.xml +++ b/WordPress/Docs/WP/DeprecatedParameterValuesStandard.xml @@ -9,12 +9,12 @@ ]]> - + 'url' ); ]]> - + 'home' ); // Deprecated WP 2.2.0. ]]> diff --git a/WordPress/Docs/WP/DeprecatedParametersStandard.xml b/WordPress/Docs/WP/DeprecatedParametersStandard.xml index d298a5c2b6..1c2366ad9f 100644 --- a/WordPress/Docs/WP/DeprecatedParametersStandard.xml +++ b/WordPress/Docs/WP/DeprecatedParametersStandard.xml @@ -10,13 +10,13 @@ ]]> - + - + $string ); @@ -24,13 +24,13 @@ get_the_author( $string ); - + '', 'yes' ); ]]> - + 'oops', 'yes' ); diff --git a/WordPress/Docs/WhiteSpace/CastStructureSpacingStandard.xml b/WordPress/Docs/WhiteSpace/CastStructureSpacingStandard.xml index a087dd5417..d5e6172be9 100644 --- a/WordPress/Docs/WhiteSpace/CastStructureSpacingStandard.xml +++ b/WordPress/Docs/WhiteSpace/CastStructureSpacingStandard.xml @@ -10,7 +10,7 @@ ]]> - + (int) '420'; @@ -18,7 +18,7 @@ $a = (int) '420'; $a = function_call( ...(array) $mixed ); ]]> - + =(int) '420'; ]]> diff --git a/WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml b/WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml index f9e0719f1a..7b2f8777e5 100644 --- a/WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml +++ b/WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml @@ -10,13 +10,13 @@ ]]> - + === $b && $b === $c ) {} if ( ! $var ) {} ]]> - + && $b === $c ) {} @@ -29,14 +29,14 @@ if ( !$var ) {} - + && $b === $c ) {} ]]> - + && $b === $c @@ -45,13 +45,13 @@ if ( $a === $b - + = 'foo'; $all = 'foobar'; ]]> - + = 'foo'; $all ='foobar';