• Resolved jalop123j

    (@jalop123j)


    This code is causing a huge number of warnings
    if ( preg_match( '#height=["|\']?([\d%]+)["|\']?#i', $tag, $height_string ) ) {
    			if ( ctype_digit( $width_string[1] ) === true ) {
    				$args['height'] = $height_string[1];
    			}
    		}

    I think this line should be Replaced:

    if ( ctype_digit( $width_string[1] )

    with

    if ( ctype_digit( $height_string[1] ) === true ) {

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning: Undefined array key 1 in /www/oremcommx_742/public/wp-c’ is closed to new replies.