[wp-trac] [WordPress Trac] #22960: Add functions to extract images from content, attached to post, [gallery], or arbitrary string

WordPress Trac noreply at wordpress.org
Thu Mar 7 17:30:00 UTC 2013


#22960: Add functions to extract images from content, attached to post, [gallery],
or arbitrary string
-------------------------------------------------+-------------------------
 Reporter:  kcssm                                |       Owner:
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  3.6
Component:  Media                                |     Version:  3.5
 Severity:  normal                               |  Resolution:
 Keywords:  needs-codex has-patch needs-unit-    |
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by nacin):

 Replying to [comment:28 nacin]:
 > get_post_galleries() — fetch all galleries referenced in the content

 Specifically, an array of galleries, each an array of images. May need to
 be more robust if you want to know more about the gallery itself (like its
 settings), but the nature of how galleries are implemented make that
 fairly painful to implement anyway.

 The primary use case for post formats is going to be "get me the first
 image of the first gallery". Indeed, this is the focus of #23593. (It has
 also been brought up previously in #20157, as gallery cover images.) I am
 thinking a bit farther here. The original title for this ticket is "grab
 the images of a gallery", and came out of 3.5 — see #23041, #22829.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22960#comment:30>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list