Changeset 1438922
- Timestamp:
- 06/18/2016 03:38:06 AM (10 years ago)
- Location:
- vkontakte-api/trunk
- Files:
-
- 5 edited
-
classes/parent.class.php (modified) (1 diff)
-
includes/crosspost.php (modified) (2 diffs)
-
includes/login.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
vkontakte-api.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vkontakte-api/trunk/classes/parent.class.php
r1438681 r1438922 120 120 121 121 $result = curl_exec( $ch ); 122 curl_close( $ch );123 122 124 123 if ( $result === false ) { 125 124 $this->_notice_error_curl( $ch ); 126 125 } 126 127 curl_close( $ch ); 127 128 128 129 return $result; -
vkontakte-api/trunk/includes/crosspost.php
r1438681 r1438922 487 487 488 488 $params = array(); 489 $params['v'] = '3.0'; 489 490 $params['from_group'] = 1; 490 491 $params['access_token'] = get_option( 'vkapi_at' ); … … 498 499 // mini-test 499 500 500 if ( mb_strlen( $params['attachments'] ) === 0&& mb_strlen( $params['message'] ) === 0 ) {501 if ( !isset( $params['attachments'] ) && mb_strlen( $params['message'] ) === 0 ) { 501 502 $this->_notice_error( 'crosspost', - 1, 'Ни текста ни медиа-приложений' ); 502 503 -
vkontakte-api/trunk/includes/login.php
r1438681 r1438922 260 260 */ 261 261 private function _vk_wpuser_get( $id ) { 262 return reset(get_users( array(262 return call_user_func( 'reset', get_users( array( 263 263 'meta_key' => 'vkapi_uid', 264 264 'meta_value' => $id, 265 265 'number' => 1, 266 266 'count_total' => false 267 ) ) );267 ) )); 268 268 } 269 269 -
vkontakte-api/trunk/readme.txt
r1438727 r1438922 5 5 Requires at least: 3.5.1 6 6 Tested up to: 4.5.2 7 Stable tag: 3.32. 27 Stable tag: 3.32.3 8 8 9 9 Добавляет функционал API сайта VKontakte.ru(vk.com) на ваш блог. Комментарии, кнопки, виджеты... -
vkontakte-api/trunk/vkontakte-api.php
r1438727 r1438922 4 4 Plugin URI: https://darx.net/projects/vkontakte-api 5 5 Description: Add API functions from vk.com in your own blog. 6 Version: 3.32. 26 Version: 3.32.3 7 7 Author: kowack 8 8 Author URI: https://darx.net … … 33 33 34 34 public function _update() { 35 $version_current = '3.32. 2';35 $version_current = '3.32.3'; 36 36 $version_old = intval( get_option( 'vkapi_version' ) ); 37 37 … … 133 133 134 134 static public function install() { 135 if ( ! wp_next_scheduled( 'vkapi_cron_hourly' ) ) { 136 wp_schedule_event( time(), 'hourly', 'vkapi_cron_hourly' ); 137 } 138 if ( ! wp_next_scheduled( 'vkapi_cron_daily' ) ) { 139 wp_schedule_event( time(), 'daily', 'vkapi_cron_daily' ); 140 } 135 wp_clear_scheduled_hook( 'vkapi_cron_hourly' ); 136 wp_clear_scheduled_hook( 'vkapi_cron_daily' ); 137 wp_schedule_event( time(), 'hourly', 'vkapi_cron_hourly' ); 138 wp_schedule_event( time(), 'daily', 'vkapi_cron_daily' ); 141 139 // init platform 142 140 add_option( 'vkapi_appid' ); … … 204 202 } 205 203 204 // todo: what? how? Один не самый адекватный сказал что ловит 500 ошибку при деактивации 206 205 static function pause() { 207 wp_clear_scheduled_hook( 'vkapi_cron_hourly' ); 208 wp_clear_scheduled_hook( 'vkapi_cron_daily' ); 206 if ( function_exists( 'wp_clear_scheduled_hook' ) ) { 207 wp_clear_scheduled_hook( 'vkapi_cron_hourly' ); 208 wp_clear_scheduled_hook( 'vkapi_cron_daily' ); 209 } 209 210 } 210 211
Note: See TracChangeset
for help on using the changeset viewer.