Plugin Directory

Changeset 347983


Ignore:
Timestamp:
02/20/2011 09:06:15 AM (15 years ago)
Author:
stariy
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-sns-share/trunk/wp-sns-share.php

    r347571 r347983  
    677677        $postTitle = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID = $postID");
    678678        $url = get_permalink($postID);
     679        if(strpos($url, 'http://') === 0){
     680            $url = substr($url, 7);
     681        }
     682        else if(strpos($url, 'https://') === 0){
     683            $url = substr($url, 8);
     684        }
    679685        $options = get_option(SHARESNS_OPTION);
    680686        if(isset($options['sync']['sina'])){
     
    766772
    767773
    768 
Note: See TracChangeset for help on using the changeset viewer.