WordPress/wp-includes
Scott Taylor 15a7d98ce6 Protect newlines inside of CDATA. This was breaking things, notably inline JS that used comments for HTML standards compat.
* Tokenize newlines in `WP_Embed::autoembed()` before running `->autoembed_callback()`
* Tokenize newlines with placeholders in `wpautop()` 
* Introduce `wp_html_split()` to DRY the RegEx from `wp_replace_in_html_tags()` and `do_shortcodes_in_html_tags()`

Adds unit tests.

Props miqrogroove, kitchin, azaozz.
Fixes #33106.

Built from https://develop.svn.wordpress.org/trunk@33469


git-svn-id: http://core.svn.wordpress.org/trunk@33436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-28 23:03:24 +00:00
..
certificates
css TinyMCE: fix accessibility for the keyboard shortcuts help dialog. 2015-07-26 19:14:26 +00:00
fonts Dashicons: Fix font ID in SVG file. 2015-07-23 10:03:24 +00:00
ID3 Update getID3 to 1.9.9 2015-06-28 00:17:25 +00:00
images
js Fix updating of nonces on the Edit Post screen after the log in expires and the user logs in again. 2015-07-28 22:07:25 +00:00
pomo Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
SimplePie
Text Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
theme-compat Don't capitalize words in a sentence after comma. 2015-07-04 00:50:25 +00:00
admin-bar.php Fix the summary and parameter description for wp_admin_bar_customize_menu() added in 4.3. 2015-07-13 19:58:25 +00:00
atomlib.php Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
author-template.php Pass the original $user_id variable to the filter in get_the_author_meta(). 2015-05-25 13:06:25 +00:00
bookmark-template.php Sanitize the class passed to wp_list_bookmarks() and allow passing an array. 2015-06-22 20:55:28 +00:00
bookmark.php
cache.php
canonical.php Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it. 2015-05-24 05:40:25 +00:00
capabilities.php Capabilities: When creating an auto-draft, ensure that the current user still has permission to do so. 2015-07-22 04:02:25 +00:00
category-template.php Update the description for get_the_category() with helpful information for the proper function to use for custom taxonomies. 2015-07-17 22:58:25 +00:00
category.php Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it. 2015-05-24 05:40:25 +00:00
class-feed.php After [32656], add @access annotations to methods that have no doc block in wp-includes/*. 2015-05-29 21:37:24 +00:00
class-http.php For doc block types, favor bool over the few remaining booleans 2015-06-27 01:03:25 +00:00
class-IXR.php Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
class-json.php Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
class-oembed.php YouTube oEmbed parsing: support the m subdomain. 2015-06-24 21:06:26 +00:00
class-phpass.php Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
class-phpmailer.php Remove debug cruft from [33124]. 2015-07-09 07:56:24 +00:00
class-pop3.php Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
class-simplepie.php
class-smtp.php Update PHPMailer to 5.2.10 from 5.2.7. 2015-07-08 17:16:25 +00:00
class-snoopy.php
class-wp-admin-bar.php Toolbar: Disambiguate links to the dashboard vs. to the customizer. 2015-07-08 20:03:24 +00:00
class-wp-ajax-response.php
class-wp-customize-control.php Customizer: Add missing text or labels to some nav menu UI controls. 2015-07-24 20:28:25 +00:00
class-wp-customize-manager.php Site Icon: Add crop preview to the media modal. 2015-07-20 15:57:25 +00:00
class-wp-customize-nav-menus.php Customizer: Make a string translatable, see [33413]. 2015-07-28 13:25:25 +00:00
class-wp-customize-panel.php Fix syntax and add missing @access tags to a variety of methods added to WP_Customize_Nav_Menus_Panel in 4.3. 2015-07-13 20:44:24 +00:00
class-wp-customize-section.php Customizer: Hide the transport list when it's empty, especially for screen readers. 2015-07-15 19:59:25 +00:00
class-wp-customize-setting.php Use explicit variable variable syntax 2015-07-26 18:04:26 +00:00
class-wp-customize-widgets.php For doc block types, favor bool over the few remaining booleans 2015-06-27 01:03:25 +00:00
class-wp-editor.php Editor: word count: remove redundant script enqueuing 2015-07-16 12:41:25 +00:00
class-wp-embed.php Protect newlines inside of CDATA. This was breaking things, notably inline JS that used comments for HTML standards compat. 2015-07-28 23:03:24 +00:00
class-wp-error.php Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it. 2015-05-24 05:40:25 +00:00
class-wp-http-ixr-client.php
class-wp-image-editor-gd.php Replace @returns with @return in PHP docblocks. 2015-07-02 21:05:24 +00:00
class-wp-image-editor-imagick.php Replace @returns with @return in PHP docblocks. 2015-07-02 21:05:24 +00:00
class-wp-image-editor.php For doc block types, favor bool over the few remaining booleans 2015-06-27 01:03:25 +00:00
class-wp-theme.php Add @static* annotations where they are missing. 2015-05-29 15:43:29 +00:00
class-wp-walker.php
class-wp-xmlrpc-server.php Docs: Fix incorrect indentation for the wp_xmlrpc_server->wp_getPostFormats() DocBlock. 2015-07-23 13:19:27 +00:00
class-wp.php Parse request: Quote regular expression characters in home path. 2015-06-08 13:29:26 +00:00
class.wp-dependencies.php For doc block types, favor bool over the few remaining booleans 2015-06-27 01:03:25 +00:00
class.wp-scripts.php After [32656], add @access annotations to methods that have no doc block in wp-includes/*. 2015-05-29 21:37:24 +00:00
class.wp-styles.php Add a missing $html parameter variable in the hook docs for the style_loader_tag filter. 2015-07-13 21:03:24 +00:00
comment-template.php Restore rel='nofollow' for comment reply links to reduce extra crawling by search engines. 2015-07-02 11:09:25 +00:00
comment.php Fix inline documentation syntax for get_default_comment_status(), introduced in 4.3. 2015-07-13 21:23:25 +00:00
compat.php Add doc blocks to functions that are missing them. 2015-05-31 03:18:25 +00:00
cron.php Fix inline documentation syntax in wp_xmlrpc_server. 2015-05-25 06:25:25 +00:00
date.php
default-constants.php New password change/set UI. 2015-07-01 14:48:24 +00:00
default-filters.php TinyMCE: 2015-07-13 03:19:24 +00:00
default-widgets.php Add a label to the content field in the Text Widget for screen readers. 2015-06-22 21:22:26 +00:00
deprecated.php For doc block types, favor bool over the few remaining booleans 2015-06-27 01:03:25 +00:00
feed-atom-comments.php if is a statment, not a function. 2015-06-16 20:01:25 +00:00
feed-atom.php
feed-rdf.php
feed-rss2-comments.php Feeds: Revert [32765] because of objections raised in #4575. 2015-07-15 19:58:24 +00:00
feed-rss2.php Feeds: Revert [32765] because of objections raised in #4575. 2015-07-15 19:58:24 +00:00
feed-rss.php
feed.php Feeds: Revert [32765] because of objections raised in #4575. 2015-07-15 19:58:24 +00:00
formatting.php Protect newlines inside of CDATA. This was breaking things, notably inline JS that used comments for HTML standards compat. 2015-07-28 23:03:24 +00:00
functions.php Fix inline documentation syntax for a few general-purpose functions and hooks added in 4.3. 2015-07-13 21:35:24 +00:00
functions.wp-scripts.php After [32596] and [32597], ensure that wp_scripts|styles() is called to ensure an instance is created of WP_Scripts|Styles() before calling ->do_items(). 2015-06-12 16:54:24 +00:00
functions.wp-styles.php After [32596] and [32597], ensure that wp_scripts|styles() is called to ensure an instance is created of WP_Scripts|Styles() before calling ->do_items(). 2015-06-12 16:54:24 +00:00
general-template.php Fix inline documentation syntax for the language_attributes() DocBlock. 2015-07-13 21:40:25 +00:00
http.php Add @static* annotations where they are missing. 2015-05-29 15:43:29 +00:00
kses.php Shortcodes: Improve the reliablity of shortcodes inside HTML tags. 2015-07-22 05:15:25 +00:00
l10n.php Don't blindly trust the output of glob() to be an array. 2015-07-27 18:05:24 +00:00
link-template.php For doc block types, favor bool over the few remaining booleans 2015-06-27 01:03:25 +00:00
load.php Add missing doc blocks to load.php 2015-05-26 18:53:27 +00:00
locale.php Make WP_Locale::rtl_src_admin_notice() translatable. 2015-06-30 20:21:24 +00:00
media-template.php Site Icon: Add crop preview to the media modal. 2015-07-20 15:57:25 +00:00
media.php wp_audio|video_shortcode() doesn't allow you to pass id, the docs shall reflect that. 2015-07-01 15:01:26 +00:00
meta.php Fix inline documentation syntax in the DocBlock for WP_Meta_Query->has_or_relation(), added in 4.3. 2015-07-13 21:44:24 +00:00
ms-blogs.php Fix doc blocks for ms-*.php files. 2015-05-26 21:51:31 +00:00
ms-default-constants.php Fix doc blocks for ms-*.php files. 2015-05-26 21:51:31 +00:00
ms-default-filters.php Fix doc blocks for ms-*.php files. 2015-05-26 21:51:31 +00:00
ms-deprecated.php $status shouldn't be loosely compared to true in wp_xmlrpc_server::wp_deleteComment(). 2015-06-12 17:48:26 +00:00
ms-files.php if is a statment, not a function. 2015-06-16 20:01:25 +00:00
ms-functions.php Exclude individual site directories when calculating space used for the main site. 2015-07-13 00:07:24 +00:00
ms-load.php Fix doc blocks for ms-*.php files. 2015-05-26 21:51:31 +00:00
ms-settings.php
nav-menu-template.php Ensure that Custom Links in menu's are marked as current regardless of their scheme. 2015-07-07 09:57:26 +00:00
nav-menu.php Use explicit variable variable syntax 2015-07-26 18:04:26 +00:00
option.php Transients: If get_option( $transient_timeout ) returns false, don't bother trying to delete the transient in get_transient(). 2015-07-07 16:45:26 +00:00
pluggable-deprecated.php
pluggable.php Passwords: New UI for install screen. 2015-07-13 22:22:24 +00:00
plugin.php For doc block types, favor bool over the few remaining booleans 2015-06-27 01:03:25 +00:00
post-formats.php Add missing doc blocks to post-formats.php. 2015-05-27 16:06:25 +00:00
post-template.php Customizer: Improve handling of posts with no title. 2015-06-20 19:50:26 +00:00
post-thumbnail-template.php Add missing doc blocks to post-thumbnail-template.php. 2015-05-27 16:29:28 +00:00
post.php Docs: Correct the possible return types and corresponding descriptions for wp_get_post_terms(). 2015-07-23 07:45:25 +00:00
query.php In WP_Query::parse_tax_query(), allow taxonomy querystring to be formatted as an array. 2015-07-06 20:37:24 +00:00
registration-functions.php
registration.php
revision.php if is a statment, not a function. 2015-06-16 20:01:25 +00:00
rewrite.php Properly mark the $query_var parameter as optional in the DocBlock for WP_Rewrite->add_endpoint(). 2015-07-13 21:55:24 +00:00
rss-functions.php
rss.php Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
script-loader.php Editor: word count: better names for types. 2015-07-27 11:19:26 +00:00
session.php
shortcodes.php Protect newlines inside of CDATA. This was breaking things, notably inline JS that used comments for HTML standards compat. 2015-07-28 23:03:24 +00:00
taxonomy.php Fix formatting in the DocBlock for _split_shared_term(). 2015-07-13 21:57:24 +00:00
template-loader.php Add singular.php to template hierarchy 2015-06-18 19:01:26 +00:00
template.php Docs: Update the DocBlock descriptions for a variety of template functions to better reflect that the dynamic $type_template hook can be used to filter the template path. 2015-07-14 22:27:24 +00:00
theme.php Properly clean up header image data when the attachment is deleted. 2015-07-15 16:28:25 +00:00
update.php Add missing doc blocks to update.php: 2015-05-28 15:29:28 +00:00
user.php Fix the same typo again in the hook doc summary for the send_pass_change_email filter. 2015-07-13 22:27:24 +00:00
vars.php Some doc blocks should use bool instead of true|false 2015-06-27 00:45:24 +00:00
version.php Protect newlines inside of CDATA. This was breaking things, notably inline JS that used comments for HTML standards compat. 2015-07-28 23:03:24 +00:00
widgets.php Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
wlwmanifest.xml
wp-db.php WPDB: When checking the encoding of strings against the database, make sure we're only relying on the return value of strings that were sent to the database. Also make sure that we're not trying to sanity check strings that've been marked as not needing sanity checking. 2015-07-28 06:32:24 +00:00
wp-diff.php