WordPress.org

Plugin Directory

Changeset 636824


Ignore:
Timestamp:
12/10/12 23:16:17 (17 months ago)
Author:
pross
Message:

Fix a warning in php 5.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • theme-check/trunk/checks/links.php

    r503927 r636824  
    1616            if ( preg_match_all( "/(<a)(\\s+)(href" . $space_re . "=" . $space_re . "\"" . $space_re . "((http|https|ftp):\\/\\/)?)" . $url_re . "(\"" . $space_re . $title_re . $space_re . ">)" . $title_re . "(<\\/a>)/is", $phpfile, $out, PREG_SET_ORDER ) ) { 
    1717                $filename = tc_filename( $php_key ); 
    18                 $out = array_unique( $out ); 
    1918                foreach( $out as $key ) { 
    2019                    if ( preg_match( '/\<a\s?href\s?=\s?["|\'](.*?)[\'|"](.*?)\>(.*?)\<\/a\>/is', $key[0], $stripped ) ) { 
Note: See TracChangeset for help on using the changeset viewer.