Press This: ignore site descriptions that end with an ellipsis. These are most likely auto-generated.
Props kraftbj. Fixes #31639. Built from https://develop.svn.wordpress.org/trunk@31810 git-svn-id: http://core.svn.wordpress.org/trunk@31792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d63cd35bde
commit
f26a2e8113
|
@ -971,6 +971,11 @@ class WP_Press_This {
|
|||
} else if ( ! empty( $data['_meta']['description'] ) ) {
|
||||
$text = $data['_meta']['description'];
|
||||
}
|
||||
|
||||
// If there is an ellipsis at the end, the description is very likely auto-generated. Better to ignore it.
|
||||
if ( $text && substr( $text, -3 ) === '...' ) {
|
||||
$text = '';
|
||||
}
|
||||
}
|
||||
|
||||
$default_html = array(
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-beta1-31809';
|
||||
$wp_version = '4.2-beta1-31810';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue