Notice fixes see #7509 props DD32 and jacobsantos.

git-svn-id: https://develop.svn.wordpress.org/trunk@8944 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2008-09-21 20:41:25 +00:00
parent e6d08d8092
commit 8e25586a4e
15 changed files with 91 additions and 26 deletions
+1 -3
View File
@@ -802,10 +802,8 @@ function maybe_serialize( $data ) {
*/
function make_url_footnote( $content ) {
preg_match_all( '/<a(.+?)href=\"(.+?)\"(.*?)>(.+?)<\/a>/', $content, $matches );
$j = 0;
$links_summary = "\n";
for ( $i=0; $i<count($matches[0]); $i++ ) {
$links_summary = ( !$j ) ? "\n" : $links_summary;
$j++;
$link_match = $matches[0][$i];
$link_number = '['.($i+1).']';
$link_url = $matches[2][$i];