Skip to content

Commit

Permalink
Merge pull request #256 from paulobarcelos/master
Browse files Browse the repository at this point in the history
Exposed ID in rwmb_file_info and rwmb_image_info
  • Loading branch information
rilwis committed Mar 27, 2013
2 parents f2fc734 + 8bd9171 commit f8f2297
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/helpers.php
Expand Up @@ -187,6 +187,7 @@ function rwmb_file_info( $id )
{
$path = get_attached_file( $id );
return array(
'ID' => $id,
'name' => basename( $path ),
'path' => $path,
'url' => wp_get_attachment_url( $id ),
Expand Down Expand Up @@ -215,6 +216,7 @@ function rwmb_image_info( $id, $args = array() )
$attachment = &get_post( $id );
$path = get_attached_file( $id );
return array(
'ID' => $id,
'name' => basename( $path ),
'path' => $path,
'url' => $img_src[0],
Expand Down

0 comments on commit f8f2297

Please sign in to comment.