WordPress.org

Make WordPress Core

Changeset 14699


Ignore:
Timestamp:
05/16/2010 09:00:00 PM (8 years ago)
Author:
westi
Message:

Make get_attachment_metadata() loop safe.

File:
1 edited

Legend:

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

    r14650 r14699  
    35373537 * @return string|bool Attachment meta field. False on failure.
    35383538 */
    3539 function wp_get_attachment_metadata( $post_id, $unfiltered = false ) {
     3539function wp_get_attachment_metadata( $post_id = 0, $unfiltered = false ) {
    35403540    $post_id = (int) $post_id;
    35413541    if ( !$post =& get_post( $post_id ) )
Note: See TracChangeset for help on using the changeset viewer.