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.



Built from https://develop.svn.wordpress.org/trunk@51122


git-svn-id: http://core.svn.wordpress.org/trunk@50731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake
2021-06-08 23:13:57 +00:00
parent bb041c2503
commit cc26b6f068
2 changed files with 56 additions and 11 deletions

View File

@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-51121';
$wp_version = '5.8-alpha-51122';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.