Plugin Directory

Changeset 500551


Ignore:
Timestamp:
02/05/2012 06:51:07 AM (14 years ago)
Author:
michaelbeacom
Message:

adding version 1.1.2

Location:
sharing-is-caring/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sharing-is-caring/trunk/readme.txt

    r500095 r500551  
    6060* Updated screenshots
    6161
     62= 1.1.2 =
     63* Fixed: Fatal Error on conflict with duplicate funtion name in another plugin
     64
    6265== Upgrade Notice ==
    6366
     
    7073= 1.1.1 =
    7174* bugfix for pinterest button only showing horizontal count
     75
     76= 1.1.2 =
     77* fix for conflict with another plugin with duplicate function name
  • sharing-is-caring/trunk/sharing-is-caring.php

    r499941 r500551  
    44Plugin URI: http://michaelbea.com/sharing-is-caring/
    55Description: Displays the social widgets from Facebook, Twitter, Google+ and Pinterest with your posts.  Most options for the buttons are customizable in the admin panel.  Also adds some meta tags for opengraph and schema.org.
    6 Version: 1.1.1
     6Version: 1.1.2
    77Author: Michael Beacom
    88Author URI: http://michaelbea.com
     
    2626
    2727//Deactives the plugin if wordpress version is less than 3.3
    28 function requires_wordpress_version() {
     28function sic_wordpress_version() {
    2929    global $wp_version;
    3030    $plugin = plugin_basename( __FILE__ );
     
    3838    }
    3939}
    40 add_action( 'admin_init', 'requires_wordpress_version' );
     40add_action( 'admin_init', 'sic_wordpress_version' );
    4141
    4242// Set-up Action and Filter Hooks
     
    375375                "\n\t<meta property='og:url' content='",get_permalink(),"' />",
    376376                "\n\t<meta property='og:site_name' content='",get_option('blogname'),"' />",
    377                 "\n\t<meta property='og:description' content='",the_excerpt_max_charlength(300),"' />",
     377                "\n\t<meta property='og:description' content='",sic_excerpt_max_charlength(300),"' />",
    378378                "\n\t<meta property='og:type' content='article' />",
    379379                "\n\t<meta itemprop='name' content='",get_the_title($post->post_title),"' />",
    380                 "\n\t<meta itemprop='description' content='",the_excerpt_max_charlength(300),"' />";
    381             $images_array = get_the_images();
     380                "\n\t<meta itemprop='description' content='",sic_excerpt_max_charlength(300),"' />";
     381            $images_array = sic_get_images();
    382382            foreach ($images_array as $image) {
    383383                if ($image != '') {
     
    417417
    418418//returns an array of attachments from the post
    419 function get_the_images() {
     419function sic_get_images() {
    420420    // Including global WP Enviroment.
    421421    global $post, $posts;
     
    458458
    459459/* Extracts the content, removes tags, replaces single and double quotes, cuts it, removes the caption shortcode */
    460 function the_excerpt_max_charlength($charlength) {
     460function sic_excerpt_max_charlength($charlength) {
    461461    $content = get_the_content(); //get the content
    462462    $content = strip_tags($content); // strip all html tags
     
    659659   
    660660    if ($options["pinterest_position"] != 0) { 
    661         $image_array = get_the_images();
     661        $image_array = sic_get_images();
    662662        $widgets[$options["pinterest_position"]] =
    663663        sprintf(
Note: See TracChangeset for help on using the changeset viewer.