Weaver Xtreme Theme Support - Version 2.1.1

Version Description

  • Fix: currenet user in login widget
Download this release

Release Info

Developer wpweaver
Plugin Icon 128x128 Weaver Xtreme Theme Support
Version 2.1.1
Comparing to
See all releases

Code changes from version 2.1 to 2.1.1

includes/wvrx-ts-shortcodes.php CHANGED
@@ -625,7 +625,7 @@ function wvrx_ts_weaverx_sc_info() { // [info] ======================
625
  global $current_user;
626
  $out = __('<strong>Theme/User Info</strong><hr />','weaverx-theme-support' /*adm*/);
627
 
628
- $current_user = wp_get_currentuserinfo();
629
  if (isset($current_user->display_name)) {
630
  $out .= __('<em>User:</em> ','weaverx-theme-support' /*adm*/) . $current_user->display_name . '<br />';
631
  }
625
  global $current_user;
626
  $out = __('<strong>Theme/User Info</strong><hr />','weaverx-theme-support' /*adm*/);
627
 
628
+ $current_user = wp_get_current_user();
629
  if (isset($current_user->display_name)) {
630
  $out .= __('<em>User:</em> ','weaverx-theme-support' /*adm*/) . $current_user->display_name . '<br />';
631
  }
includes/wvrx-ts-widgets.php CHANGED
@@ -127,7 +127,7 @@ class WeaverX_Widget_Login extends WP_Widget {
127
  if ( $title )
128
  echo $before_title . $title . $after_title;
129
  global $current_user;
130
- $current_user = wp_get_currentuserinfo();
131
  if (isset($current_user->display_name))
132
  echo '<span class="wvrx-welcome-user">' . __('Welcome','weaverx-theme-support' /*adm*/) . ' ' . $current_user->display_name . ".</span><br />\n";
133
  ?>
127
  if ( $title )
128
  echo $before_title . $title . $after_title;
129
  global $current_user;
130
+ $current_user = wp_get_current_user();
131
  if (isset($current_user->display_name))
132
  echo '<span class="wvrx-welcome-user">' . __('Welcome','weaverx-theme-support' /*adm*/) . ' ' . $current_user->display_name . ".</span><br />\n";
133
  ?>
readme.txt CHANGED
@@ -10,7 +10,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: weaverx-theme-support
11
  Requires at least: 4.3
12
  Tested up to: 4.5
13
- Stable tag: 2.1
14
 
15
  A useful shortcode and widget collection for Weaver Xtreme
16
 
@@ -75,6 +75,8 @@ Support for this plugin can best be found at our forum - http://forum.weaverthem
75
  See ChangeLog for changes to this version.
76
 
77
  == ChangeLog ==
 
 
78
 
79
  = 2.1 =
80
  * Update: wp_get_current_user() deprecated call
10
  Text Domain: weaverx-theme-support
11
  Requires at least: 4.3
12
  Tested up to: 4.5
13
+ Stable tag: 2.1.1
14
 
15
  A useful shortcode and widget collection for Weaver Xtreme
16
 
75
  See ChangeLog for changes to this version.
76
 
77
  == ChangeLog ==
78
+ = 2.1.1 =
79
+ * Fix: currenet user in login widget
80
 
81
  = 2.1 =
82
  * Update: wp_get_current_user() deprecated call
weaverx-ts.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://weavertheme.com/plugins
5
  Description: Weaver X Theme Support - a package of useful shortcodes and widgets that integrates closely with the Weaver X theme. This plugin Will also allow you to switch from Weaver X to any other theme and still be able to use the shortcodes and widgets from Weaver X with minimal effort.
6
  Author: wpweaver
7
  Author URI: http://weavertheme.com/about/
8
- Version: 2.1
9
  License: GPL V3
10
 
11
  Weaver Xtreme Theme Support
@@ -33,7 +33,7 @@ $theme = get_template_directory();
33
 
34
  if ( strpos( $theme, '/weaver-xtreme') !== false ) { // only load if Weaver Xtreme is the theme
35
 
36
- define ('WVRX_TS_VERSION','2.1');
37
  define ('WVRX_TS_MINIFY','.min'); // '' for dev, '.min' for production
38
  define ('WVRX_TS_APPEARANCE_PAGE', false );
39
 
5
  Description: Weaver X Theme Support - a package of useful shortcodes and widgets that integrates closely with the Weaver X theme. This plugin Will also allow you to switch from Weaver X to any other theme and still be able to use the shortcodes and widgets from Weaver X with minimal effort.
6
  Author: wpweaver
7
  Author URI: http://weavertheme.com/about/
8
+ Version: 2.1.1
9
  License: GPL V3
10
 
11
  Weaver Xtreme Theme Support
33
 
34
  if ( strpos( $theme, '/weaver-xtreme') !== false ) { // only load if Weaver Xtreme is the theme
35
 
36
+ define ('WVRX_TS_VERSION','2.1.1');
37
  define ('WVRX_TS_MINIFY','.min'); // '' for dev, '.min' for production
38
  define ('WVRX_TS_APPEARANCE_PAGE', false );
39
 
wp-updates-theme-1411.php DELETED
@@ -1,68 +0,0 @@
1
- <?php
2
- /*
3
- WPUpdates Theme Updater Class
4
- http://wp-updates.com
5
- v2.0
6
-
7
- Example Usage:
8
- require_once('wp-updates-theme.php');
9
- new WPUpdatesThemeUpdater_1411( 'http://wp-updates.com/api/2/theme', basename(get_template_directory()) );
10
- */
11
-
12
- if( !class_exists('WPUpdatesThemeUpdater_1411') ) {
13
- class WPUpdatesThemeUpdater_1411 {
14
-
15
- var $api_url;
16
- var $theme_id = 1411;
17
- var $theme_slug;
18
- var $license_key;
19
-
20
- function __construct( $api_url, $theme_slug, $license_key = null ) {
21
- $this->api_url = $api_url;
22
- $this->theme_slug = $theme_slug;
23
- $this->license_key = $license_key;
24
-
25
- add_filter( 'pre_set_site_transient_update_themes', array(&$this, 'check_for_update') );
26
-
27
- // This is for testing only!
28
- //set_site_transient('update_themes', null);
29
- }
30
-
31
- function check_for_update( $transient ) {
32
- if (empty($transient->checked)) return $transient;
33
-
34
- $request_args = array(
35
- 'id' => $this->theme_id,
36
- 'slug' => $this->theme_slug,
37
- 'version' => $transient->checked[$this->theme_slug]
38
- );
39
- if ($this->license_key) $request_args['license'] = $this->license_key;
40
-
41
- $request_string = $this->prepare_request( 'theme_update', $request_args );
42
- $raw_response = wp_remote_post( $this->api_url, $request_string );
43
-
44
- $response = null;
45
- if( !is_wp_error($raw_response) && ($raw_response['response']['code'] == 200) )
46
- $response = unserialize($raw_response['body']);
47
-
48
- if( !empty($response) ) // Feed the update data into WP updater
49
- $transient->response[$this->theme_slug] = $response;
50
-
51
- return $transient;
52
- }
53
-
54
- function prepare_request( $action, $args ) {
55
- global $wp_version;
56
-
57
- return array(
58
- 'body' => array(
59
- 'action' => $action,
60
- 'request' => serialize($args),
61
- 'api-key' => md5(home_url())
62
- ),
63
- 'user-agent' => 'WordPress/'. $wp_version .'; '. home_url()
64
- );
65
- }
66
-
67
- }
68
- }