From d6bd539813ae27cdddccd59f3f27d298a29636fd Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 17 Nov 2009 21:11:24 +0000 Subject: [PATCH] Deprecate make_url_footnote(). fixes #4968 git-svn-id: http://svn.automattic.com/wordpress/trunk@12203 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/deprecated.php | 30 ++++++++++++++++++++++++++++++ wp-includes/functions.php | 28 ---------------------------- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index fbfbeafed9..7a106100fe 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -1756,4 +1756,34 @@ function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file echo $content; } +/** + * Strip HTML and put links at the bottom of stripped content. + * + * Searches for all of the links, strips them out of the content, and places + * them at the bottom of the content with numbers. + * + * @since 0.71 + * @deprecated 2.9.0 + * + * @param string $content Content to get links + * @return string HTML stripped out of content with links at the bottom. + */ +function make_url_footnote( $content ) { + _deprecated_function(__FUNCTION__, '2.9', '' ); + preg_match_all( '/(.+?)<\/a>/', $content, $matches ); + $links_summary = "\n"; + for ( $i=0; $i \ No newline at end of file diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 664dbcf57b..151ccc6c12 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -970,34 +970,6 @@ function maybe_serialize( $data ) { return $data; } -/** - * Strip HTML and put links at the bottom of stripped content. - * - * Searches for all of the links, strips them out of the content, and places - * them at the bottom of the content with numbers. - * - * @since 0.71 - * - * @param string $content Content to get links - * @return string HTML stripped out of content with links at the bottom. - */ -function make_url_footnote( $content ) { - preg_match_all( '/(.+?)<\/a>/', $content, $matches ); - $links_summary = "\n"; - for ( $i=0; $i