[wp-trac] [WordPress Trac] #45708: Allow retrieving adjacent image link markup without echoing it

WordPress Trac noreply at wordpress.org
Tue Jun 8 23:12:36 UTC 2021


#45708: Allow retrieving adjacent image link markup without echoing it
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  whyisjake
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.8
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests has-        |     Focuses:  template
  testing-info commit                            |
-------------------------------------------------+-------------------------
Changes (by whyisjake):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51122" 51122]:
 {{{
 #!CommitTicketReference repository="" revision="51122"
 Media: Add new functions to return the previous/next attachment links.

 New functions:

 * get_adjacent_image_link()
 * get_next_image_link()
 * get_previous_image_link()

 Fixes #45708.

 Props flixos90, DrewAPicture, mor10, antpb, hellofromTonya, whyisjake.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45708#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list