From 6d1f6bbae8c1ab6dd1eb3a996a74e7845794487a Mon Sep 17 00:00:00 2001 From: Nic-Sevic <47717887+Nic-Sevic@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:52:34 -0700 Subject: [PATCH 1/6] Add: documentation for FileName sniff --- WordPress/Docs/Files/FileNameStandard.xml | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 WordPress/Docs/Files/FileNameStandard.xml diff --git a/WordPress/Docs/Files/FileNameStandard.xml b/WordPress/Docs/Files/FileNameStandard.xml new file mode 100644 index 0000000000..6d6f45333a --- /dev/null +++ b/WordPress/Docs/Files/FileNameStandard.xml @@ -0,0 +1,32 @@ + + + + + + + -my-term.inc +echo somefile.inc +echo class-testsample.inc +echo other-punctuation.inc +echo general-template.php + ]]> + + + _term.inc. +echo SomeFile.inc +echo testsample-unit-2.inc +echo other+punctuation#.inc +echo general.php + ]]> + + + From 4f4f54135738d4d9caeda87d0aa9f687428f1f19 Mon Sep 17 00:00:00 2001 From: Nic-Sevic <47717887+Nic-Sevic@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:22:32 -0700 Subject: [PATCH 2/6] fix: syntax issues --- WordPress/Docs/Files/FileNameStandard.xml | 38 +++++++++++++---------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/WordPress/Docs/Files/FileNameStandard.xml b/WordPress/Docs/Files/FileNameStandard.xml index 6d6f45333a..fc255cb848 100644 --- a/WordPress/Docs/Files/FileNameStandard.xml +++ b/WordPress/Docs/Files/FileNameStandard.xml @@ -1,31 +1,35 @@ - - + + + -my-term.inc -echo somefile.inc -echo class-testsample.inc -echo other-punctuation.inc -echo general-template.php +taxonomy-my-term.inc +somefile.inc +class-testsample.inc +other-punctuation.inc +general-template.php ]]> _term.inc. -echo SomeFile.inc -echo testsample-unit-2.inc -echo other+punctuation#.inc -echo general.php +taxonomy-my_term.inc. +SomeFile.inc +testsample-unit-2.inc +other+punctuation#.inc +general.php ]]> From a08e0925f387940b2a83c233c3e5a3054d3df8bc Mon Sep 17 00:00:00 2001 From: Jason Kenison Date: Tue, 26 Aug 2025 13:41:05 -0700 Subject: [PATCH 3/6] initial edits, breaking up standards --- WordPress/Docs/Files/FileNameStandard.xml | 28 +++++++++++++++-------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/WordPress/Docs/Files/FileNameStandard.xml b/WordPress/Docs/Files/FileNameStandard.xml index fc255cb848..7365dadfdd 100644 --- a/WordPress/Docs/Files/FileNameStandard.xml +++ b/WordPress/Docs/Files/FileNameStandard.xml @@ -5,30 +5,40 @@ > - + -my-term.inc somefile.inc class-testsample.inc other-punctuation.inc -general-template.php ]]> - + _term.inc. SomeFile.inc testsample-unit-2.inc other+punctuation#.inc + ]]> + + + + + + + + -template.php + ]]> + + + general.php ]]> From 68a27736189118a9a5b013275cec2c5f4d875b24 Mon Sep 17 00:00:00 2001 From: Jason Kenison Date: Tue, 26 Aug 2025 14:57:18 -0700 Subject: [PATCH 4/6] updated examples, added new mimetype examples --- WordPress/Docs/Files/FileNameStandard.xml | 50 ++++++++++++++++++++--- 1 file changed, 45 insertions(+), 5 deletions(-) diff --git a/WordPress/Docs/Files/FileNameStandard.xml b/WordPress/Docs/Files/FileNameStandard.xml index 7365dadfdd..4686b0efa2 100644 --- a/WordPress/Docs/Files/FileNameStandard.xml +++ b/WordPress/Docs/Files/FileNameStandard.xml @@ -5,11 +5,32 @@ > - + + taxonomy-term.inc +class-test-sample.php +other-punctuation.inc + ]]> + + + text-plain.php +html.inc +richtext.php + ]]> + + + + + + + -my-term.inc somefile.inc @@ -17,17 +38,36 @@ taxonomy-my-term.inc other-punctuation.inc ]]> - + _term.inc. +taxonomy-my_term.inc SomeFile.inc -testsample-unit-2.inc +testsample-Unit2.inc other+punctuation#.inc ]]> + + + + class-bulkupdater.php + ]]> + + + class.bulk-updater.php +bulkupdater-class.php +class-CustomFormatter.php + ]]> + + + + From 200cdfabfa5d6595e8670e008782d2eab4997965 Mon Sep 17 00:00:00 2001 From: Jason Kenison Date: Tue, 2 Sep 2025 13:57:26 -0700 Subject: [PATCH 5/6] clarified code examples and standard text --- WordPress/Docs/Files/FileNameStandard.xml | 41 +++++------------------ 1 file changed, 9 insertions(+), 32 deletions(-) diff --git a/WordPress/Docs/Files/FileNameStandard.xml b/WordPress/Docs/Files/FileNameStandard.xml index 4686b0efa2..91f5fa0698 100644 --- a/WordPress/Docs/Files/FileNameStandard.xml +++ b/WordPress/Docs/Files/FileNameStandard.xml @@ -1,40 +1,18 @@ - - - - taxonomy-term.inc -class-test-sample.php -other-punctuation.inc - ]]> - - - text-plain.php -html.inc -richtext.php - ]]> - - - - -my-term.inc -somefile.inc -class-testsample.inc +some-file.inc other-punctuation.inc ]]> @@ -42,7 +20,6 @@ other-punctuation.inc _term.inc SomeFile.inc -testsample-Unit2.inc other+punctuation#.inc ]]> @@ -55,24 +32,24 @@ other+punctuation#.inc class-bulkupdater.php +class-bulk-updater.php ]]> class.bulk-updater.php -bulkupdater-class.php -class-CustomFormatter.php +class.bulk-updater.php +bulk-updater.php +bulk-updater-class.php ]]> - + -template.php ]]> From 768e4a9e1aef2955f4d8dbc55127023f9a53f227 Mon Sep 17 00:00:00 2001 From: Jason Kenison Date: Tue, 2 Sep 2025 14:05:46 -0700 Subject: [PATCH 6/6] updated for spelling in broken "some" word --- WordPress/Docs/Files/FileNameStandard.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WordPress/Docs/Files/FileNameStandard.xml b/WordPress/Docs/Files/FileNameStandard.xml index 91f5fa0698..25597b602a 100644 --- a/WordPress/Docs/Files/FileNameStandard.xml +++ b/WordPress/Docs/Files/FileNameStandard.xml @@ -12,14 +12,14 @@ -my-term.inc -some-file.inc +some-file.inc other-punctuation.inc ]]> _term.inc -SomeFile.inc +Some-File.inc other+punctuation#.inc ]]>