Changeset 400586
- Timestamp:
- 06/23/2011 09:38:23 PM (15 years ago)
- Location:
- wordpress-connect/tags/2.0.3
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
src/WordpressConnect.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-connect/tags/2.0.3/readme.txt
r394379 r400586 198 198 == ChangeLog == 199 199 = 2.0.3 = 200 * Fixes encoding of non-latin characters in description and title 201 of the og meta tags 200 202 * Fixes the bug with the description meta tag that would print just the 201 203 first letter of the content followed by a space and the ellipsis. -
wordpress-connect/tags/2.0.3/src/WordpressConnect.php
r394379 r400586 282 282 } 283 283 284 $description = $this->format_description( $ description);284 $description = $this->format_description( $post->post_content ); 285 285 286 286 // make sure there is a title for the url linter 287 287 if ( empty( $title ) ){ $title = get_home_url(); } 288 288 289 $title = htmlentities( $title, ENT_QUOTES, "UTF-8" ); 289 290 ?> 290 291 <!-- Wordpress Connect v<?php echo WPC_VERSION; ?> - Open Graph Meta START --> 291 292 <meta property="og:site_name" content="<?php bloginfo( 'name' ); ?>" /> 292 <meta property="og:image" content="<?php echo $image_url; ?>" /> 293 <?php if ( !empty( $image_url ) ) : ?><meta property="og:image" content="<?php echo $image_url; ?>" /><?php endif; ?> 294 293 295 <meta property="fb:admins" content="<?php echo $options[ WPC_OPTIONS_APP_ADMINS ]; ?>" /> 294 296 <meta property="fb:app_id" content="<?php echo $options[ WPC_OPTIONS_APP_ID ]; ?>" /> … … 322 324 $description = substr( $description, 0, $split_position + 1 ) . ' ...'; 323 325 } 324 return htmlentities( $description, ENT_QUOTES );326 return htmlentities( $description, ENT_QUOTES, "UTF-8" ); 325 327 326 328 }
Note: See TracChangeset
for help on using the changeset viewer.