Make WordPress Core

Changeset 35815


Ignore:
Timestamp:
12/07/2015 05:05:34 PM (10 years ago)
Author:
ocean90
Message:

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

Merge of [35813] for the 4.4 branch.

Props swissspidy.
See #20166.

File:
1 edited

Legend:

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

    r35709 r35815  
    47754775
    47764776/**
    4777  * Shorten an URL, to be used as link text
     4777 * Shorten an URL, to be used as link text.
    47784778 *
    47794779 * @since 1.2.0
    4780  * @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param
    4781  *
    4782  * @param string $url URL to shorten
    4783  * @param  int $length Maxiumum length of url to return
    4784  * @return string
    4785 */
     4780 * @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param.
     4781 *
     4782 * @param string $url    URL to shorten.
     4783 * @param int    $length Optional. Maximum length of the shortened URL. Default 35 characters.
     4784 * @return string Shortened URL.
     4785 */
    47864786function url_shorten( $url, $length = 35 ) {
    47874787    $stripped = str_replace( array( 'https://', 'http://', 'www.' ), '', $url );
Note: See TracChangeset for help on using the changeset viewer.