From a6e6fa2675570106665f26e7cff9428575373a5f Mon Sep 17 00:00:00 2001 From: Rafael Funchal Date: Tue, 17 Sep 2024 15:18:04 -0700 Subject: [PATCH 1/2] Adding documentation to WordPress.WP.DiscouragedConstants --- .../Docs/WP/DiscouragedConstantsStandard.xml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 WordPress/Docs/WP/DiscouragedConstantsStandard.xml diff --git a/WordPress/Docs/WP/DiscouragedConstantsStandard.xml b/WordPress/Docs/WP/DiscouragedConstantsStandard.xml new file mode 100644 index 0000000000..901709cfe7 --- /dev/null +++ b/WordPress/Docs/WP/DiscouragedConstantsStandard.xml @@ -0,0 +1,49 @@ + + + + + + + + get_template_directory_uri(); ?> +/img/logo.svg" /> + ]]> + + + TEMPLATEPATH;?> +/img/logo.svg" /> + ]]> + + + + + + + + get_template_directory_uri(); ?> +/img/logo.svg" /> + ]]> + + + define("TEMPLATEPATH", "foo"); + + ]]> + + + From eb4b83673ba7690b4293247e15c97a1eb0c1705b Mon Sep 17 00:00:00 2001 From: Paulo Trentin Date: Tue, 26 Aug 2025 14:46:44 -0700 Subject: [PATCH 2/2] Add DiscouragedConstants standard doc --- .../Docs/WP/DiscouragedConstantsStandard.xml | 27 +++++++------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/WordPress/Docs/WP/DiscouragedConstantsStandard.xml b/WordPress/Docs/WP/DiscouragedConstantsStandard.xml index 901709cfe7..302318040c 100644 --- a/WordPress/Docs/WP/DiscouragedConstantsStandard.xml +++ b/WordPress/Docs/WP/DiscouragedConstantsStandard.xml @@ -5,44 +5,35 @@ > - + get_template_directory_uri(); ?> -/img/logo.svg" /> +$subdir = get_template_directory() . '/subdir'; ]]> TEMPLATEPATH;?> -/img/logo.svg" /> +$subdir = TEMPLATEPATH . '/subdir'; ]]> - + get_template_directory_uri(); ?> -/img/logo.svg" /> +$dir = get_stylesheet_directory(); ]]> - + define("TEMPLATEPATH", "foo"); - +$dir = STYLESHEETPATH; ]]>