Make WordPress Core


Ignore:
Timestamp:
05/25/2016 06:24:33 PM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Update the return description for get_preview_post_link() to note that it can also return null.

Props chris_dev, swissspidy.
See #35915.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r37543 r37564  
    12111211 * Retrieves the URL used for the post preview.
    12121212 *
    1213  * Get the preview post URL. Allows additional query args to be appended.
     1213 * Allows additional query args to be appended.
    12141214 *
    12151215 * @since 4.4.0
     
    12201220 * @param string      $preview_link Optional. Base preview link to be used if it should differ from the
    12211221 *                                  post permalink. Default empty.
    1222  * @return string URL used for the post preview.
     1222 * @return string|null URL used for the post preview, or null if the post does not exist.
    12231223 */
    12241224function get_preview_post_link( $post = null, $query_args = array(), $preview_link = '' ) {
Note: See TracChangeset for help on using the changeset viewer.