Changeset 989312
- Timestamp:
- 09/14/2014 02:50:30 AM (11 years ago)
- Location:
- sm2wp-google-minimal/trunk
- Files:
-
- 5 edited
-
classes/common.php (modified) (1 diff)
-
classes/google_plus.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
sm2wp.php (modified) (1 diff)
-
views/admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sm2wp-google-minimal/trunk/classes/common.php
r989017 r989312 1 1 <?php 2 const SM2WP_AUTH_URL = 'http://auth.sm2wp.com/';3 const SM2WP_UPDATE_URL = 'http://sm2wp.com/';2 define('SM2WP_AUTH_URL', 'http://auth.sm2wp.com/'); 3 define('SM2WP_UPDATE_URL', 'http://sm2wp.com/'); 4 4 5 5 if (get_option('timezone_string')) { -
sm2wp-google-minimal/trunk/classes/google_plus.php
r989017 r989312 126 126 if (!$t) { 127 127 $t = rtrim(strip_tags(substr($this->_content, 0, strpos($this->_content, '<br />'))), '.'); 128 } 129 } else { 130 $c = $this->_annotation.$this->_content; 131 $t = rtrim(strip_tags(substr($c, 0, strpos($c, '.'))), '.'); 132 if (!$t) { 133 $t = rtrim(strip_tags(substr($c, 0, 80)), '.'); 134 $t = strlen($c) > 80 ? $t.'...' : $t; 128 135 } 129 136 } … … 237 244 $wp_filetype = wp_check_filetype_and_ext($file, $filename); 238 245 $file_info = getimagesize($file); 239 if ( key_exists($file_info['mime'], $extension_lookup)) {246 if (@key_exists($file_info['mime'], $extension_lookup)) { 240 247 rename($file, $file.$extension_lookup[$file_info['mime']]); 241 248 $file = $file.$extension_lookup[$file_info['mime']]; … … 390 397 if (!$profiles) 391 398 $profiles = get_option('gfw_profiles', array()); 392 if ( key_exists($id, $profiles))399 if (@key_exists($id, $profiles)) 393 400 return SM2WP_GooglePlus_Library::create_from_array($profiles[$id]); 394 401 return; … … 398 405 if (!$profiles) 399 406 $profiles = get_option('gfw_profiles', array()); 400 if ( key_exists($id, $profiles))407 if (@key_exists($id, $profiles)) 401 408 unset($profiles[$id]); 402 409 update_option('gfw_profiles', $profiles); … … 405 412 public function save_profile() { 406 413 $profiles = get_option('gfw_profiles', array()); 407 if ( key_exists($this->id.'-'.$this->profileId, $profiles) && trim($profiles[$this->id.'-'.$this->profileId]['name'])) return false;414 if (@key_exists($this->id.'-'.$this->profileId, $profiles) && trim($profiles[$this->id.'-'.$this->profileId]['name'])) return false; 408 415 $profiles[$this->id.'-'.$this->profileId] = $this->to_array(); 409 416 update_option('gfw_profiles', $profiles); -
sm2wp-google-minimal/trunk/readme.txt
r989052 r989312 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.0 7 Stable tag: 1.1. 37 Stable tag: 1.1.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 1.1.4 = 52 * PHP Compatibility fixes 53 * Error cleanup 54 * Fallback for titles without new lines (80 chars) 55 51 56 = 1.1.3 = 52 57 * Help box for template tags -
sm2wp-google-minimal/trunk/sm2wp.php
r989089 r989312 4 4 * Plugin URI: http://sm2wp.com 5 5 * Description: Import your Google+ Posts to your WordPress Blog 6 * Version: 1.1. 36 * Version: 1.1.4 7 7 * Author: Daniel Treadwell 8 8 * Author URI: http://minimali.se -
sm2wp-google-minimal/trunk/views/admin.php
r989089 r989312 100 100 101 101 <p class='pro-invitation'> 102 S M2WP / Google+ /Complete supports <u>multiple profiles</u> and <u>G+ pages</u>, <u>deeper post history</u>, <u>filter imports by hashtags</u>, <u>feature images</u> and more! <a href='http://sm2wp.com/'>Click here to upgrade</a>.102 Social Media 2 WordPress for Google+ Complete supports <u>multiple profiles</u> and <u>G+ pages</u>, <u>deeper post history</u>, <u>filter imports by hashtags</u>, <u>feature images</u> and more! <a href='http://sm2wp.com/'>Click here to upgrade</a>. 103 103 </p> 104 104
Note: See TracChangeset
for help on using the changeset viewer.