mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Taxonomy queries and urls. Props andy. see #6357
git-svn-id: https://develop.svn.wordpress.org/trunk@7491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -501,6 +501,11 @@ function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false)
|
||||
}
|
||||
|
||||
function prepend_attachment($content) {
|
||||
global $post;
|
||||
|
||||
if ( empty($post->post_type) || $post->post_type != 'attachment' )
|
||||
return;
|
||||
|
||||
$p = '<p class="attachment">';
|
||||
// show the medium sized image representation of the attachment if available, and link to the raw file
|
||||
$p .= wp_get_attachment_link(0, 'medium', false);
|
||||
|
||||
Reference in New Issue
Block a user