Quantcast
Channel: help – WordPress.org Forums
Viewing all articles
Browse latest Browse all 13924

Sean on "Page wont load, or loads slowly, with custom logo image."

$
0
0

I'm not a dev, and was really hoping to get some help. . .
The page is now loading properly, in about 3 seconds. I started chasing variables, back to the file
"/var/www/pbtgmain/wp-content/themes/customizr/inc/parts/class-header-header_main.php</em>"

And just started clipping functions. The following was the culprit, causing 62 second loading times.

<?php
    //filter args
    $filter_args = array(
	'logo_src' 	=>	$logo_src,
	'logo_resize' 	=>	$logo_resize,
	'logo_class'	=> 	$logo_class
		   	);
    ob_start();
	$width 				= '';
	$height 			= '';
//gets height and width from image, we check if getimagesize can be used first with the error control operator
     if ( @getimagesize($logo_src) ) {list( $width, $height ) = getimagesize($logo_src);
}?>

I compared this against the original install files from a previous backup and see no difference.

Can anyone explain this function to me, and what it accomplishes?


Viewing all articles
Browse latest Browse all 13924

Trending Articles