mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 04:25:07 +00:00
Fix pass by ref error. Props DD32. fixes #6776 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
35086b850f
commit
8591767741
@ -373,7 +373,8 @@ function the_attachment_link($id = 0, $fullsize = false, $deprecated = false, $p
|
|||||||
|
|
||||||
// get an attachment page link using an image or icon if possible
|
// get an attachment page link using an image or icon if possible
|
||||||
function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false) {
|
function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false) {
|
||||||
$_post = & get_post( intval($id) );
|
$id = intval($id);
|
||||||
|
$_post = & get_post( $id );
|
||||||
|
|
||||||
if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) )
|
if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) )
|
||||||
return __('Missing Attachment');
|
return __('Missing Attachment');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user