Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Neil

    (@encrypt1on)

    It appears I have managed to get the grid view working by commenting the following code:

    // Loop through all potential sizes that may be chosen. Try to do this with some efficiency.
    // First: run the image_downsize filter. If it returns something, we can use its data.
    // If the filter does not return something, then image_downsize() is just an expensive
    // way to check the image metadata, which we do second.
    foreach ( $possible_sizes as $size => $label ) {
    
    	/** This filter is documented in wp-includes/media.php */
    	if ( $downsize = apply_filters( 'image_downsize', false, $attachment->ID, $size ) ) {
    		if ( ! $downsize[3] )
    			continue;
    		$sizes[ $size ] = array(
    			'height'      => $downsize[2],
    			'width'       => $downsize[1],
    			'url'         => $downsize[0],
    			'orientation' => $downsize[2] > $downsize[1] ? 'portrait' : 'landscape',
    		);
    	} elseif ( isset( $meta['sizes'][ $size ] ) ) {
    		if ( ! isset( $base_url ) )
    			$base_url = str_replace( wp_basename( $attachment_url ), '', $attachment_url );
    
    		// Nothing from the filter, so consult image metadata if we have it.
    		$size_meta = $meta['sizes'][ $size ];
    
    		// We have the actual image size, but might need to further constrain it if content_width is narrower.
    		// Thumbnail, medium, and full sizes are also checked against the site's height/width options.
    		list( $width, $height ) = image_constrain_size_for_editor( $size_meta['width'], $size_meta['height'], $size, 'edit' );
    
    		$sizes[ $size ] = array(
    			'height'      => $height,
    			'width'       => $width,
    			'url'         => $base_url . $size_meta['file'],
    			'orientation' => $height > $width ? 'portrait' : 'landscape',
    		);
    	}
    }

    Located – Code Line 2798:

    wp-includes/media.php

    I will have to leave this commented until further notice.

    Neil

    (@encrypt1on)

    Anyone find a solution on this? For a blog platform I consider this a big bug..

    Thanks.

    Thread Starter Neil

    (@encrypt1on)

    No the box can be extended that is not the problem.

    Is there any means to use a meta tag, In which an html <textarea> to insert whatever I wish rather than small snippets

    Thread Starter Neil

    (@encrypt1on)

    No problem,

    It’s a great plugin, however I wondered, if it was possible to create a large textarea for a block of code? Rather than css and a separate html block.

    I did not get an option to add any meta tags..

    Thanks for the quick response!

    where is the setting exclusion settings in WP Security, I love the plugin however it takes over .htaccess and I can’t find the option.

Viewing 5 replies - 1 through 5 (of 5 total)