<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[GlotPress][895] trunk/gp-includes/wp-formatting.php: Delete wp-formatting.php.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://glotpress.trac.wordpress.org/changeset/895">895</a></dd>
<dt>Author</dt> <dd>markoheijnen</dd>
<dt>Date</dt> <dd>2014-05-06 22:07:04 +0000 (Tue, 06 May 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Delete wp-formatting.php. The file got obsolete in changeset [136] when the functions got loaded from BackPress. Fixes <a href="http://glotpress.trac.wordpress.org/ticket/316">#316</a></pre>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkgpincludeswpformattingphp">trunk/gp-includes/wp-formatting.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkgpincludeswpformattingphp"></a>
<div class="delfile"><h4>Deleted: trunk/gp-includes/wp-formatting.php (894 => 895)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/gp-includes/wp-formatting.php 2014-05-06 22:00:11 UTC (rev 894)
+++ trunk/gp-includes/wp-formatting.php 2014-05-06 22:07:04 UTC (rev 895)
</span><span class="lines">@@ -1,619 +0,0 @@
</span><del>-<?php
-/** Formatting
-
-Taken from bbPress, taken from WordPress
-
-*/
-
-if ( !function_exists( 'clean_pre' ) ) : // Current at [WP9840]
-/**
- * Accepts matches array from preg_replace_callback in wpautop() or a string.
- *
- * Ensures that the contents of a <<pre>>...<</pre>> HTML block are not
- * converted into paragraphs or line-breaks.
- *
- * @since WP 1.2.0
- *
- * @param array|string $matches The array or string
- * @return string The pre block without paragraph/line-break conversion.
- */
-function clean_pre($matches) {
- if ( is_array($matches) )
- $text = $matches[1] . $matches[2] . "</pre>";
- else
- $text = $matches;
-
- $text = str_replace('<br />', '', $text);
- $text = str_replace('<p>', "\n", $text);
- $text = str_replace('</p>', '', $text);
-
- return $text;
-}
-endif;
-
-if ( !function_exists( 'js_escape' ) ) : // Current at [WP9840]
-/**
- * Escape single quotes, specialchar double quotes, and fix line endings.
- *
- * The filter 'js_escape' is also applied here.
- *
- * @since WP 2.0.4
- *
- * @param string $text The text to be escaped.
- * @return string Escaped text.
- */
-function js_escape($text) {
- $safe_text = wp_check_invalid_utf8( $text );
- $safe_text = wp_specialchars( $safe_text, ENT_COMPAT );
- $safe_text = preg_replace( '/&#(x)?0*(?(1)27|39);?/i', "'", stripslashes( $safe_text ) );
- $safe_text = preg_replace( "/\r?\n/", "\\n", addslashes( $safe_text ) );
- return apply_filters( 'js_escape', $safe_text, $text );
-}
-endif;
-
-if ( !function_exists( 'attribute_escape' ) ) : // Not like WordPress - uses wp_check_invalid_utf8() and wp_entities()
-/**
- * Escaping for HTML attributes.
- *
- * @since WP 2.0.6
- *
- * @param string $text
- * @return string
- */
-function attribute_escape( $text ) {
- $safe_text = wp_check_invalid_utf8( $text );
- $safe_text = wp_specialchars( $safe_text, ENT_QUOTES );
- return apply_filters( 'attribute_escape', $safe_text, $text );
-}
-endif;
-
-if ( !function_exists( 'build_query' ) ) : // Current at [WP9840]
-/**
- * Build URL query based on an associative and, or indexed array.
- *
- * This is a convenient function for easily building url queries. It sets the
- * separator to '&' and uses _http_build_query() function.
- *
- * @see _http_build_query() Used to build the query
- * @link http://us2.php.net/manual/en/function.http-build-query.php more on what
- * http_build_query() does.
- *
- * @since WP 2.3.0
- *
- * @param array $data URL-encode key/value pairs.
- * @return string URL encoded string
- */
-function build_query( $data ) {
- return _http_build_query( $data, null, '&', '', false );
-}
-endif;
-
-if ( !function_exists( 'add_query_arg' ) ) : // Current at [WP9840]
-/**
- * Retrieve a modified URL query string.
- *
- * You can rebuild the URL and append a new query variable to the URL query by
- * using this function. You can also retrieve the full URL with query data.
- *
- * Adding a single key & value or an associative array. Setting a key value to
- * emptystring removes the key. Omitting oldquery_or_uri uses the $_SERVER
- * value.
- *
- * @since WP 1.5.0
- *
- * @param mixed $param1 Either newkey or an associative_array
- * @param mixed $param2 Either newvalue or oldquery or uri
- * @param mixed $param3 Optional. Old query or uri
- * @return string New URL query string.
- */
-function add_query_arg() {
- $ret = '';
- if ( is_array( func_get_arg(0) ) ) {
- if ( @func_num_args() < 2 || false === @func_get_arg( 1 ) )
- $uri = $_SERVER['REQUEST_URI'];
- else
- $uri = @func_get_arg( 1 );
- } else {
- if ( @func_num_args() < 3 || false === @func_get_arg( 2 ) )
- $uri = $_SERVER['REQUEST_URI'];
- else
- $uri = @func_get_arg( 2 );
- }
-
- if ( $frag = strstr( $uri, '#' ) )
- $uri = substr( $uri, 0, -strlen( $frag ) );
- else
- $frag = '';
-
- if ( preg_match( '|^https?://|i', $uri, $matches ) ) {
- $protocol = $matches[0];
- $uri = substr( $uri, strlen( $protocol ) );
- } else {
- $protocol = '';
- }
-
- if ( strpos( $uri, '?' ) !== false ) {
- $parts = explode( '?', $uri, 2 );
- if ( 1 == count( $parts ) ) {
- $base = '?';
- $query = $parts[0];
- } else {
- $base = $parts[0] . '?';
- $query = $parts[1];
- }
- } elseif ( !empty( $protocol ) || strpos( $uri, '=' ) === false ) {
- $base = $uri . '?';
- $query = '';
- } else {
- $base = '';
- $query = $uri;
- }
-
- wp_parse_str( $query, $qs );
- $qs = urlencode_deep( $qs ); // this re-URL-encodes things that were already in the query string
- if ( is_array( func_get_arg( 0 ) ) ) {
- $kayvees = func_get_arg( 0 );
- $qs = array_merge( $qs, $kayvees );
- } else {
- $qs[func_get_arg( 0 )] = func_get_arg( 1 );
- }
-
- foreach ( (array) $qs as $k => $v ) {
- if ( $v === false )
- unset( $qs[$k] );
- }
-
- $ret = build_query( $qs );
- $ret = trim( $ret, '?' );
- $ret = preg_replace( '#=(&|$)#', '$1', $ret );
- $ret = $protocol . $base . $ret . $frag;
- $ret = rtrim( $ret, '?' );
- return $ret;
-}
-endif;
-
-if ( !function_exists( 'remove_query_arg' ) ) : // Current at [WP9840]
-/**
- * Removes an item or list from the query string.
- *
- * @since WP 1.5.0
- *
- * @param string|array $key Query key or keys to remove.
- * @param bool $query When false uses the $_SERVER value.
- * @return string New URL query string.
- */
-function remove_query_arg( $key, $query=false ) {
- if ( is_array( $key ) ) { // removing multiple keys
- foreach ( $key as $k )
- $query = add_query_arg( $k, false, $query );
- return $query;
- }
- return add_query_arg( $key, false, $query );
-}
-endif;
-
-if ( !function_exists( 'ent2ncr' ) ) : // Current at [WP9840]
-/**
- * Converts named entities into numbered entities.
- *
- * @since WP 1.5.1
- *
- * @param string $text The text within which entities will be converted.
- * @return string Text with converted entities.
- */
-function ent2ncr($text) {
- $to_ncr = array(
- '"' => '"',
- '&' => '&',
- '⁄' => '/',
- '<' => '<',
- '>' => '>',
- '|' => '|',
- ' ' => ' ',
- '¡' => '¡',
- '¢' => '¢',
- '£' => '£',
- '¤' => '¤',
- '¥' => '¥',
- '¦' => '¦',
- '&brkbar;' => '¦',
- '§' => '§',
- '¨' => '¨',
- '¨' => '¨',
- '©' => '©',
- 'ª' => 'ª',
- '«' => '«',
- '¬' => '¬',
- '­' => '­',
- '®' => '®',
- '¯' => '¯',
- '&hibar;' => '¯',
- '°' => '°',
- '±' => '±',
- '²' => '²',
- '³' => '³',
- '´' => '´',
- 'µ' => 'µ',
- '¶' => '¶',
- '·' => '·',
- '¸' => '¸',
- '¹' => '¹',
- 'º' => 'º',
- '»' => '»',
- '¼' => '¼',
- '½' => '½',
- '¾' => '¾',
- '¿' => '¿',
- 'À' => 'À',
- 'Á' => 'Á',
- 'Â' => 'Â',
- 'Ã' => 'Ã',
- 'Ä' => 'Ä',
- 'Å' => 'Å',
- 'Æ' => 'Æ',
- 'Ç' => 'Ç',
- 'È' => 'È',
- 'É' => 'É',
- 'Ê' => 'Ê',
- 'Ë' => 'Ë',
- 'Ì' => 'Ì',
- 'Í' => 'Í',
- 'Î' => 'Î',
- 'Ï' => 'Ï',
- 'Ð' => 'Ð',
- 'Ñ' => 'Ñ',
- 'Ò' => 'Ò',
- 'Ó' => 'Ó',
- 'Ô' => 'Ô',
- 'Õ' => 'Õ',
- 'Ö' => 'Ö',
- '×' => '×',
- 'Ø' => 'Ø',
- 'Ù' => 'Ù',
- 'Ú' => 'Ú',
- 'Û' => 'Û',
- 'Ü' => 'Ü',
- 'Ý' => 'Ý',
- 'Þ' => 'Þ',
- 'ß' => 'ß',
- 'à' => 'à',
- 'á' => 'á',
- 'â' => 'â',
- 'ã' => 'ã',
- 'ä' => 'ä',
- 'å' => 'å',
- 'æ' => 'æ',
- 'ç' => 'ç',
- 'è' => 'è',
- 'é' => 'é',
- 'ê' => 'ê',
- 'ë' => 'ë',
- 'ì' => 'ì',
- 'í' => 'í',
- 'î' => 'î',
- 'ï' => 'ï',
- 'ð' => 'ð',
- 'ñ' => 'ñ',
- 'ò' => 'ò',
- 'ó' => 'ó',
- 'ô' => 'ô',
- 'õ' => 'õ',
- 'ö' => 'ö',
- '÷' => '÷',
- 'ø' => 'ø',
- 'ù' => 'ù',
- 'ú' => 'ú',
- 'û' => 'û',
- 'ü' => 'ü',
- 'ý' => 'ý',
- 'þ' => 'þ',
- 'ÿ' => 'ÿ',
- 'Œ' => 'Œ',
- 'œ' => 'œ',
- 'Š' => 'Š',
- 'š' => 'š',
- 'Ÿ' => 'Ÿ',
- 'ƒ' => 'ƒ',
- 'ˆ' => 'ˆ',
- '˜' => '˜',
- 'Α' => 'Α',
- 'Β' => 'Β',
- 'Γ' => 'Γ',
- 'Δ' => 'Δ',
- 'Ε' => 'Ε',
- 'Ζ' => 'Ζ',
- 'Η' => 'Η',
- 'Θ' => 'Θ',
- 'Ι' => 'Ι',
- 'Κ' => 'Κ',
- 'Λ' => 'Λ',
- 'Μ' => 'Μ',
- 'Ν' => 'Ν',
- 'Ξ' => 'Ξ',
- 'Ο' => 'Ο',
- 'Π' => 'Π',
- 'Ρ' => 'Ρ',
- 'Σ' => 'Σ',
- 'Τ' => 'Τ',
- 'Υ' => 'Υ',
- 'Φ' => 'Φ',
- 'Χ' => 'Χ',
- 'Ψ' => 'Ψ',
- 'Ω' => 'Ω',
- 'α' => 'α',
- 'β' => 'β',
- 'γ' => 'γ',
- 'δ' => 'δ',
- 'ε' => 'ε',
- 'ζ' => 'ζ',
- 'η' => 'η',
- 'θ' => 'θ',
- 'ι' => 'ι',
- 'κ' => 'κ',
- 'λ' => 'λ',
- 'μ' => 'μ',
- 'ν' => 'ν',
- 'ξ' => 'ξ',
- 'ο' => 'ο',
- 'π' => 'π',
- 'ρ' => 'ρ',
- 'ς' => 'ς',
- 'σ' => 'σ',
- 'τ' => 'τ',
- 'υ' => 'υ',
- 'φ' => 'φ',
- 'χ' => 'χ',
- 'ψ' => 'ψ',
- 'ω' => 'ω',
- 'ϑ' => 'ϑ',
- 'ϒ' => 'ϒ',
- 'ϖ' => 'ϖ',
- ' ' => ' ',
- ' ' => ' ',
- ' ' => ' ',
- '‌' => '‌',
- '‍' => '‍',
- '‎' => '‎',
- '‏' => '‏',
- '–' => '–',
- '—' => '—',
- '‘' => '‘',
- '’' => '’',
- '‚' => '‚',
- '“' => '“',
- '”' => '”',
- '„' => '„',
- '†' => '†',
- '‡' => '‡',
- '•' => '•',
- '…' => '…',
- '‰' => '‰',
- '′' => '′',
- '″' => '″',
- '‹' => '‹',
- '›' => '›',
- '‾' => '‾',
- '⁄' => '⁄',
- '€' => '€',
- 'ℑ' => 'ℑ',
- '℘' => '℘',
- 'ℜ' => 'ℜ',
- '™' => '™',
- 'ℵ' => 'ℵ',
- '↵' => '↵',
- '⇐' => '⇐',
- '⇑' => '⇑',
- '⇒' => '⇒',
- '⇓' => '⇓',
- '⇔' => '⇔',
- '∀' => '∀',
- '∂' => '∂',
- '∃' => '∃',
- '∅' => '∅',
- '∇' => '∇',
- '∈' => '∈',
- '∉' => '∉',
- '∋' => '∋',
- '∏' => '∏',
- '∑' => '∑',
- '−' => '−',
- '∗' => '∗',
- '√' => '√',
- '∝' => '∝',
- '∞' => '∞',
- '∠' => '∠',
- '∧' => '∧',
- '∨' => '∨',
- '∩' => '∩',
- '∪' => '∪',
- '∫' => '∫',
- '∴' => '∴',
- '∼' => '∼',
- '≅' => '≅',
- '≈' => '≈',
- '≠' => '≠',
- '≡' => '≡',
- '≤' => '≤',
- '≥' => '≥',
- '⊂' => '⊂',
- '⊃' => '⊃',
- '⊄' => '⊄',
- '⊆' => '⊆',
- '⊇' => '⊇',
- '⊕' => '⊕',
- '⊗' => '⊗',
- '⊥' => '⊥',
- '⋅' => '⋅',
- '⌈' => '⌈',
- '⌉' => '⌉',
- '⌊' => '⌊',
- '⌋' => '⌋',
- '⟨' => '〈',
- '⟩' => '〉',
- '←' => '←',
- '↑' => '↑',
- '→' => '→',
- '↓' => '↓',
- '↔' => '↔',
- '◊' => '◊',
- '♠' => '♠',
- '♣' => '♣',
- '♥' => '♥',
- '♦' => '♦'
- );
-
- return str_replace( array_keys($to_ncr), array_values($to_ncr), $text );
-}
-endif;
-
-if ( !function_exists( 'urlencode_deep' ) ) : // Current at [WP9840]
-/**
- * Navigates through an array and encodes the values to be used in a URL.
- *
- * Uses a callback to pass the value of the array back to the function as a
- * string.
- *
- * @since WP 2.2.0
- *
- * @param array|string $value The array or string to be encoded.
- * @return array|string $value The encoded array (or string from the callback).
- */
-function urlencode_deep($value) {
- $value = is_array($value) ? array_map('urlencode_deep', $value) : urlencode($value);
- return $value;
-}
-endif;
-
-if ( !function_exists( 'zeroise' ) ) : // Current at [WP9840]
-/**
- * Add leading zeros when necessary.
- *
- * If you set the threshold to '4' and the number is '10', then you will get
- * back '0010'. If you set the number to '4' and the number is '5000', then you
- * will get back '5000'.
- *
- * Uses sprintf to append the amount of zeros based on the $threshold parameter
- * and the size of the number. If the number is large enough, then no zeros will
- * be appended.
- *
- * @since WP 0.71
- *
- * @param mixed $number Number to append zeros to if not greater than threshold.
- * @param int $threshold Digit places number needs to be to not have zeros added.
- * @return string Adds leading zeros to number if needed.
- */
-function zeroise($number, $threshold) {
- return sprintf('%0'.$threshold.'s', $number);
-}
-endif;
-
-if ( !function_exists( 'backslashit' ) ) : // Current at [WP9840]
-/**
- * Adds backslashes before letters and before a number at the start of a string.
- *
- * @since WP 0.71
- *
- * @param string $string Value to which backslashes will be added.
- * @return string String with backslashes inserted.
- */
-function backslashit($string) {
- $string = preg_replace('/^([0-9])/', '\\\\\\\\\1', $string);
- $string = preg_replace('/([a-z])/i', '\\\\\1', $string);
- return $string;
-}
-endif;
-
-if ( !function_exists( '_make_url_clickable_cb' ) ): // Current at [WP11307]
-/**
- * Callback to convert URI match to HTML A element.
- *
- * This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link
- * make_clickable()}.
- *
- * @since 2.3.2
- * @access private
- *
- * @param array $matches Single Regex Match.
- * @return string HTML A element with URI address.
- */
-function _make_url_clickable_cb($matches) {
- $url = $matches[2];
- $url = clean_url($url);
- if ( empty($url) )
- return $matches[0];
- return $matches[1] . "<a href=\"$url\" rel=\"nofollow\">$url</a>";
-}
-endif;
-
-if ( !function_exists( '_make_web_ftp_clickable_cb' ) ): // Current at [WP11307]
-/**
- * Callback to convert URL match to HTML A element.
- *
- * This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link
- * make_clickable()}.
- *
- * @since 2.3.2
- * @access private
- *
- * @param array $matches Single Regex Match.
- * @return string HTML A element with URL address.
- */
-function _make_web_ftp_clickable_cb($matches) {
- $ret = '';
- $dest = $matches[2];
- $dest = 'http://' . $dest;
- $dest = clean_url($dest);
- if ( empty($dest) )
- return $matches[0];
- // removed trailing [,;:] from URL
- if ( in_array(substr($dest, -1), array('.', ',', ';', ':')) === true ) {
- $ret = substr($dest, -1);
- $dest = substr($dest, 0, strlen($dest)-1);
- }
- return $matches[1] . "<a href=\"$dest\" rel=\"nofollow\">$dest</a>" . $ret;
-}
-endif;
-
-if ( !function_exists( '_make_email_clickable_cb' ) ): // Current at [WP11307]
-/**
- * Callback to convert email address match to HTML A element.
- *
- * This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link
- * make_clickable()}.
- *
- * @since 2.3.2
- * @access private
- *
- * @param array $matches Single Regex Match.
- * @return string HTML A element with email address.
- */
-function _make_email_clickable_cb($matches) {
- $email = $matches[2] . '@' . $matches[3];
- return $matches[1] . "<a href=\"mailto:$email\">$email</a>";
-}
-endif;
-
-if ( !function_exists( 'make_clickable' ) ): // Current at [WP11307]
-/**
- * Convert plaintext URI to HTML links.
- *
- * Converts URI, www and ftp, and email addresses. Finishes by fixing links
- * within links.
- *
- * @since 0.71
- *
- * @param string $ret Content to convert URIs.
- * @return string Content with converted URIs.
- */
-function make_clickable($ret) {
- $ret = ' ' . $ret;
- // in testing, using arrays here was found to be faster
- $ret = preg_replace_callback('#(?<=[\s>])(\()?([\w]+?://(?:[\w\\x80-\\xff\#$%&~/\-=?@\[\](+]|[.,;:](?![\s<])|(?(1)\)(?![\s<])|\)))+)#is', '_make_url_clickable_cb', $ret);
- $ret = preg_replace_callback('#([\s>])((www|ftp)\.[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]+)#is', '_make_web_ftp_clickable_cb', $ret);
- $ret = preg_replace_callback('#([\s>])([.0-9a-z_+-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})#i', '_make_email_clickable_cb', $ret);
- // this one is not in an array because we need it to run last, for cleanup of accidental links within links
- $ret = preg_replace("#(<a( [^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i", "$1$3</a>", $ret);
- $ret = trim($ret);
- return $ret;
-}
-endif;
</del></span></pre>
</div>
</div>
</body>
</html>