WordPress.org

Make WordPress Core

Ticket #30406: 30406.patch

File 30406.patch, 1.7 KB (added by colorful tones, 5 years ago)

Added missing @return statements and descriptions

  • src/wp-includes/link-template.php

     
    19751975 * @since 2.0.10
    19761976 *
    19771977 * @param int $max_page Optional. Max pages.
    1978  * @return string
     1978 * @return string Link for next posts page.
    19791979 */
    19801980function get_next_posts_page_link($max_page = 0) {
    19811981        global $paged;
     
    19961996 *
    19971997 * @param int $max_page Optional. Max pages.
    19981998 * @param boolean $echo Optional. Echo or return;
     1999 * @return string Link for next posts if $echo = false.
    19992000 */
    20002001function next_posts( $max_page = 0, $echo = true ) {
    20012002        $output = esc_url( get_next_posts_page_link( $max_page ) );
     
    20132014 *
    20142015 * @param string $label Content for link text.
    20152016 * @param int $max_page Optional. Max pages.
    2016  * @return string|null
     2017 * @return string|null HTML formatted next posts page link.
    20172018 */
    20182019function get_next_posts_link( $label = null, $max_page = 0 ) {
    20192020        global $paged, $wp_query;
     
    20642065 *
    20652066 * @since 2.0.10
    20662067 *
    2067  * @return string|null
     2068 * @return string|null Link for previous posts page.
    20682069 */
    20692070function get_previous_posts_page_link() {
    20702071        global $paged;
     
    20832084 * @since 0.71
    20842085 *
    20852086 * @param boolean $echo Optional. Echo or return;
     2087 * @return string Optional. Previous posts page link if $echo = false.
    20862088 */
    20872089function previous_posts( $echo = true ) {
    20882090        $output = esc_url( get_previous_posts_page_link() );
     
    20992101 * @since 2.7.0
    21002102 *
    21012103 * @param string $label Optional. Previous page link text.
    2102  * @return string|null
     2104 * @return string|null HTML formatted previous page link.
    21032105 */
    21042106function get_previous_posts_link( $label = null ) {
    21052107        global $paged;