Make WordPress Core

Ticket #20166: typo.diff

File typo.diff, 1.3 KB (added by swissspidy, 8 years ago)
  • src/wp-includes/formatting.php

    From 0523076a34b753823f5736efae9a102af5645def Mon Sep 17 00:00:00 2001
    From: Pascal Birchler <hello@pascalbirchler.ch>
    Date: Fri, 4 Dec 2015 15:13:03 -0500
    Subject: [PATCH] Fix typo
    
    ---
     src/wp-includes/formatting.php | 10 +++++-----
     1 file changed, 5 insertions(+), 5 deletions(-)
    
    diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php
    index e0b45fd..0aa1188 100644
    function wp_staticize_emoji_for_email( $mail ) { 
    47794779 * @since 1.2.0
    47804780 * @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param
    47814781 *
    4782  * @param string $url URL to shorten
    4783  * @param  int $length Maxiumum length of url to return
    4784  * @return string
    4785 */
     4782 * @param string $url    URL to shorten.
     4783 * @param int    $length Optional. Maximum length the shortened URL. Default 35.
     4784 * @return string Shortened URL.
     4785 */
    47864786function url_shorten( $url, $length = 35 ) {
    47874787        $stripped = str_replace( array( 'https://', 'http://', 'www.' ), '', $url );
    47884788        $short_url = untrailingslashit( $stripped );
    function url_shorten( $url, $length = 35 ) { 
    47914791                $short_url = substr( $short_url, 0, $length - 3 ) . '&hellip;';
    47924792        }
    47934793        return $short_url;
    4794 }
    4795  No newline at end of file
     4794}