Use correct variable. see [23575]. see #21767.
git-svn-id: https://develop.svn.wordpress.org/trunk@23584 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aae1d4ef75
commit
83de7017df
@ -220,7 +220,7 @@ add_action( 'update_option_page_on_front', 'update_home_siteurl', 10, 2 );
|
||||
* @return string
|
||||
*/
|
||||
function url_shorten( $url ) {
|
||||
$short_url = str_replace( array( 'http://', 'www.' ), '', $short_url );
|
||||
$short_url = str_replace( array( 'http://', 'www.' ), '', $url );
|
||||
$short_url = untrailingslashit( $short_url );
|
||||
if ( strlen( $short_url ) > 35 )
|
||||
$short_url = substr( $short_url, 0, 32 ) . '...';
|
||||
|
Loading…
Reference in New Issue
Block a user