Twenty Eleven: Improve documentation for twentyeleven_attachment_size filter.
Follow-up to [25625]. Props sabernhardt. Fixes #63160. Built from https://develop.svn.wordpress.org/trunk@60077 git-svn-id: http://core.svn.wordpress.org/trunk@59413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -93,14 +93,15 @@ get_header(); ?>
|
||||
<a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment">
|
||||
<?php
|
||||
/**
|
||||
* Filters the Twenty Eleven default attachment size.
|
||||
* Filters the width for Twenty Eleven's default attachment size.
|
||||
*
|
||||
* This edits the image width, and the image height is limited to 1024 pixels.
|
||||
*
|
||||
* @since Twenty Eleven 1.0
|
||||
*
|
||||
* @param int The height and width attachment size dimensions in pixels. Default 848.
|
||||
* @param int The width for the image attachment size in pixels. Default 848.
|
||||
*/
|
||||
$attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 );
|
||||
// Filterable image width with 1024px limit for image height.
|
||||
echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) );
|
||||
?>
|
||||
</a>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-beta3-60076';
|
||||
$wp_version = '6.8-beta3-60077';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user