Make WordPress Core


Ignore:
Timestamp:
11/23/2008 06:37:15 AM (16 years ago)
Author:
azaozz
Message:

Gallery settings for TinyMCE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r9844 r9847  
    758758 * @return string HTML content.
    759759 */
    760 function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false) {
     760function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false, $imgwidth = false) {
    761761    $id = intval($id);
    762762    $_post = & get_post( $id );
     
    770770    $post_title = attribute_escape($_post->post_title);
    771771
    772     $link_text = wp_get_attachment_image($id, $size, $icon);
     772    $link_text = wp_get_attachment_image($id, $size, $icon, $imgwidth);
    773773    if ( !$link_text )
    774774        $link_text = $_post->post_title;
Note: See TracChangeset for help on using the changeset viewer.