Plugin Directory

Changeset 400586


Ignore:
Timestamp:
06/23/2011 09:38:23 PM (15 years ago)
Author:
scibuff
Message:
 
Location:
wordpress-connect/tags/2.0.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-connect/tags/2.0.3/readme.txt

    r394379 r400586  
    198198== ChangeLog ==
    199199= 2.0.3 =
     200* Fixes encoding of non-latin characters in description and title
     201  of the og meta tags
    200202* Fixes the bug with the description meta tag that would print just the
    201203  first letter of the content followed by a space and the ellipsis.
  • wordpress-connect/tags/2.0.3/src/WordpressConnect.php

    r394379 r400586  
    282282        }
    283283
    284         $description = $this->format_description( $description );
     284        $description = $this->format_description( $post->post_content );
    285285
    286286        // make sure there is a title for the url linter
    287287        if ( empty( $title ) ){ $title = get_home_url(); }
    288288
     289        $title = htmlentities( $title, ENT_QUOTES, "UTF-8" );
    289290?>
    290291        <!-- Wordpress Connect v<?php echo WPC_VERSION; ?> - Open Graph Meta START -->
    291292        <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
    293295        <meta property="fb:admins" content="<?php echo $options[ WPC_OPTIONS_APP_ADMINS ]; ?>" />
    294296        <meta property="fb:app_id" content="<?php echo $options[ WPC_OPTIONS_APP_ID ]; ?>" />
     
    322324            $description = substr( $description, 0, $split_position + 1 ) . ' ...';
    323325        }
    324         return htmlentities( $description, ENT_QUOTES );
     326        return htmlentities( $description, ENT_QUOTES, "UTF-8" );
    325327
    326328    }
Note: See TracChangeset for help on using the changeset viewer.