Make WordPress Core

Changeset 35813


Ignore:
Timestamp:
12/07/2015 04:38:24 PM (10 years ago)
Author:
swissspidy
Message:

Docs: After [35314], fix the DocBlock for url_shorten().

See #20166.

File:
1 edited

Legend:

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

    r35803 r35813  
    47774777
    47784778/**
    4779  * Shorten an URL, to be used as link text
     4779 * Shorten an URL, to be used as link text.
    47804780 *
    47814781 * @since 1.2.0
    4782  * @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param
    4783  *
    4784  * @param string $url URL to shorten
    4785  * @param  int $length Maxiumum length of url to return
    4786  * @return string
    4787 */
     4782 * @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param.
     4783 *
     4784 * @param string $url    URL to shorten.
     4785 * @param int    $length Optional. Maximum length of the shortened URL. Default 35 characters.
     4786 * @return string Shortened URL.
     4787 */
    47884788function url_shorten( $url, $length = 35 ) {
    47894789    $stripped = str_replace( array( 'https://', 'http://', 'www.' ), '', $url );
Note: See TracChangeset for help on using the changeset viewer.