wordpress-develop/tests/phpunit/tests/formatting
Pascal Birchler b58973554d Sitemaps: Add XML sitemaps functionality to WordPress.
While web crawlers are able to discover pages from links within the site and from other sites, XML sitemaps supplement this approach by allowing crawlers to quickly and comprehensively identify all URLs included in the sitemap and learn other signals about those URLs using the associated metadata.

See https://make.wordpress.org/core/2020/06/10/merge-announcement-extensible-core-sitemaps/ for more details.

This feature exposes the sitemap index via `/wp-sitemap.xml` and exposes a variety of new filters and hooks for developers to modify the behavior. Users can disable sitemaps completely by turning off search engine visibility in WordPress admin.

This change also introduces a new `esc_xml()` function to escape strings for output in XML, as well as XML support to `wp_kses_normalize_entities()`.

Props Adrian McShane, afragen, adamsilverstein, casiepa, flixos90, garrett-eclipse, joemcgill, kburgoine, kraftbj, milana_cap, pacifika, pbiron, pfefferle, Ruxandra Gradina, swissspidy, szepeviktor, tangrufus, tweetythierry.
Fixes #50117.
See #3670. See #19998.


git-svn-id: https://develop.svn.wordpress.org/trunk@48072 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-17 15:22:49 +00:00
..
Autop.php Users: Change "Your Profile" and "My Profile" links in admin menu and toolbar to just "Profile" for consistency. 2020-04-20 08:37:31 +00:00
balanceTags.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
BlogInfo.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
CapitalPDangit.php Formatting: Fix capital_P_dangit() not capital P-ing, dangit. 2018-01-08 10:35:13 +00:00
CleanPre.php Code is Poetry. 2017-11-30 23:09:33 +00:00
ConvertInvalidEntries.php Code is Poetry. 2017-11-30 23:09:33 +00:00
date.php Date/Time: Rewrite and simplify get_gmt_from_date(), get_date_from_gmt(), and iso8601_to_datetime() using wp_timezone(). 2019-08-23 11:02:51 +00:00
Emoji.php Emoji: Upgrade Twemoji to version 13.0.0. 2020-06-15 18:02:14 +00:00
ent2ncr.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
EscAttr.php Code is Poetry. 2017-11-30 23:09:33 +00:00
EscHtml.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
EscTextarea.php Code is Poetry. 2017-11-30 23:09:33 +00:00
EscUrl.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
EscXml.php Sitemaps: Add XML sitemaps functionality to WordPress. 2020-06-17 15:22:49 +00:00
ExcerptRemoveBlocks.php Fix parsing of inner blocks when auto-generating an excerpt. Helps to prevent cases where dynamic inner blocks may cause an infinite loop if trying to auto-generate an excerpt. 2019-04-24 21:38:21 +00:00
GetUrlInContent.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
HtmlExcerpt.php Code is Poetry. 2017-11-30 23:09:33 +00:00
HumanTimeDiff.php Formatting: Add support for seconds to human_time_diff(). 2019-06-28 06:43:27 +00:00
IsEmail.php Code is Poetry. 2017-11-30 23:09:33 +00:00
isoDescrambler.php Code is Poetry. 2017-11-30 23:09:33 +00:00
JSEscape.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
LikeEscape.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
LinksAddTarget.php Code is Poetry. 2017-11-30 23:09:33 +00:00
MakeClickable.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
MapDeep.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
NormalizeWhitespace.php Code is Poetry. 2017-11-30 23:09:33 +00:00
redirect.php Docs: Improve comments in tests/formatting/redirect.php per the documentation standards. 2019-12-18 00:26:23 +00:00
RemoveAccents.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
SanitizeFileName.php Coding Standards: Fix WPCS issues in tests/formatting/SanitizeFileName.php. 2020-04-29 17:23:30 +00:00
SanitizeMimeType.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
SanitizeOrderby.php Clean up some edge cases in sanitize_sql_orderby(). 2015-04-20 05:41:37 +00:00
SanitizePost.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SanitizeTextField.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
SanitizeTitle.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SanitizeTitleWithDashes.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SanitizeTrackbackUrls.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
SanitizeUser.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SeemsUtf8.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
Slashit.php Code is Poetry. 2017-11-30 23:09:33 +00:00
Smilies.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
StripSlashesDeep.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
UrlencodeDeep.php Code is Poetry. 2017-11-30 23:09:33 +00:00
URLShorten.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
Utf8UriEncode.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
WPBasename.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WpHtmlEditPre.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WpHtmlSplit.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
WPMakeLinkRelative.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WPRelNoFollow.php Coding Standards: Fix WPCS issue in [45990]. 2019-09-04 18:40:13 +00:00
WPRelUgc.php Comments: Add rel="nofollow ugc" attribute to links in comments. 2019-09-30 01:29:10 +00:00
WpReplaceInHtmlTags.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WpRichEditPre.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WPSpecialchars.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
WPStripAllTags.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
WPTargetedLinkRel.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
WPTexturize.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
WpTrimExcerpt.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WPTrimWords.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
Zeroise.php Code is Poetry. 2017-11-30 23:09:33 +00:00