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 ) { |
4779 | 4779 | * @since 1.2.0 |
4780 | 4780 | * @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param |
4781 | 4781 | * |
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 | */ |
4786 | 4786 | function url_shorten( $url, $length = 35 ) { |
4787 | 4787 | $stripped = str_replace( array( 'https://', 'http://', 'www.' ), '', $url ); |
4788 | 4788 | $short_url = untrailingslashit( $stripped ); |
… |
… |
function url_shorten( $url, $length = 35 ) { |
4791 | 4791 | $short_url = substr( $short_url, 0, $length - 3 ) . '…'; |
4792 | 4792 | } |
4793 | 4793 | return $short_url; |
4794 | | } |
4795 | | No newline at end of file |
| 4794 | } |