Weaver Xtreme Theme Support - Version 2.1

Version Description

  • Update: wp_get_current_user() deprecated call
  • Tweak: Corrected descriptions of default values for some area width options (100% vs. auto)
  • WARNING: This version corrects some incorrect wording in area width option descriptions. The functionality is identical, but the new wording is correct. No one had noticed the incorrect descriptions for a very long time, so it doesn't seem to be critical problem.
Download this release

Release Info

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

Code changes from version 2.0.5 to 2.1

admin/admin-lib-ts-2.php CHANGED
@@ -288,6 +288,10 @@ function weaverx_form_widget_area( $value, $submit = false ) {
288
  'wrapper', 'container', 'content','widget', 'post'
289
  );
290
 
 
 
 
 
291
 
292
  if ( in_array( $id, $no_lr_margins )) {
293
  if ( $id != 'widget') {
@@ -303,11 +307,20 @@ function weaverx_form_widget_area( $value, $submit = false ) {
303
  'info' => __('The width of this area is automatically determined by the enclosing area', 'weaver-xtreme' /*adm*/)));
304
  } else if ( $id != 'wrapper' ) {
305
 
306
- weaverx_form_val( array(
307
- 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span> ' . __('Width', 'weaver-xtreme' /*adm*/),
308
- 'id' => $id . '_width_int', 'type' => '',
309
- 'info' => '<em>' . $name . '</em>' . __(': Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Center align. (Default: 100%)', 'weaver-xtreme' /*adm*/),
310
- 'value' => array() ), '%' );
 
 
 
 
 
 
 
 
 
311
 
312
  weaverx_form_align(array(
313
  'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('Align Area', 'weaver-xtreme' /*adm*/) . '</small>',
288
  'wrapper', 'container', 'content','widget', 'post'
289
  );
290
 
291
+ $default_auto = array(
292
+ 'top', 'bottom', 'footer_sb', 'header_sb'
293
+ );
294
+
295
 
296
  if ( in_array( $id, $no_lr_margins )) {
297
  if ( $id != 'widget') {
307
  'info' => __('The width of this area is automatically determined by the enclosing area', 'weaver-xtreme' /*adm*/)));
308
  } else if ( $id != 'wrapper' ) {
309
 
310
+ if ( in_array($id, $default_auto)) {
311
+ weaverx_form_val( array(
312
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span> ' . __('Width', 'weaver-xtreme' /*adm*/),
313
+ 'id' => $id . '_width_int', 'type' => '',
314
+ 'info' => '<em>' . $name . '</em>' . __(': Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Center align. Use 0 to force auto width. (Default if blank: auto)', 'weaver-xtreme' /*adm*/),
315
+ 'value' => array() ), '%' );
316
+ } else {
317
+ weaverx_form_val( array(
318
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span> ' . __('Width', 'weaver-xtreme' /*adm*/),
319
+ 'id' => $id . '_width_int', 'type' => '',
320
+ 'info' => '<em>' . $name . '</em>' . __(': Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Center align. Use 0 to force auto width. (Default if blank: 100%)', 'weaver-xtreme' /*adm*/),
321
+ 'value' => array() ), '%' );
322
+
323
+ }
324
 
325
  weaverx_form_align(array(
326
  'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('Align Area', 'weaver-xtreme' /*adm*/) . '</small>',
admin/admin-mainopts.php CHANGED
@@ -263,7 +263,7 @@ function weaverx_mainopts_header() {
263
 
264
  array('name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __('Maximum Image Width', 'weaver-xtreme' /*adm*/) . '</small>',
265
  'id' => 'header_image_max_width_dec', 'type' => '+val_percent',
266
- 'info' => __('Maximum width of Image (Default: 100%; (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
267
 
268
  array('name' => '<small>' . __('Use Actual Image Size', 'weaver-xtreme' /*adm*/) . '</small>',
269
  'id' => 'header_actual_size', 'type' => '+checkbox',
263
 
264
  array('name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __('Maximum Image Width', 'weaver-xtreme' /*adm*/) . '</small>',
265
  'id' => 'header_image_max_width_dec', 'type' => '+val_percent',
266
+ 'info' => __('Maximum width of Image (Default: 100%) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
267
 
268
  array('name' => '<small>' . __('Use Actual Image Size', 'weaver-xtreme' /*adm*/) . '</small>',
269
  'id' => 'header_actual_size', 'type' => '+checkbox',
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
- 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_currentuserinfo();
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
- 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_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
  ?>
readme.txt CHANGED
@@ -8,9 +8,9 @@ Author: wpweaver
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: weaverx-theme-support
11
- Requires at least: 4.0
12
- Tested up to: 4.4
13
- Stable tag: 2.0.5
14
 
15
  A useful shortcode and widget collection for Weaver Xtreme
16
 
@@ -72,10 +72,17 @@ Support for this plugin can best be found at our forum - http://forum.weaverthem
72
 
73
  == Upgrade Notice ==
74
 
75
- This is the initial release of this plugin.
76
 
77
  == ChangeLog ==
78
 
 
 
 
 
 
 
 
79
  = 2.0.4 =
80
  * Change: [header_image] updated to support WP 4.4 srcset image sizes
81
  * New: Pre and Post #header div position for Header Widget Area
8
  License: GPLv2 or later
9
  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
 
72
 
73
  == Upgrade Notice ==
74
 
75
+ See ChangeLog for changes to this version.
76
 
77
  == ChangeLog ==
78
 
79
+ = 2.1 =
80
+ * Update: wp_get_current_user() deprecated call
81
+ * Tweak: Corrected descriptions of default values for some area width options (100% vs. auto)
82
+ * WARNING: This version corrects some incorrect wording in area width option descriptions.
83
+ The functionality is identical, but the new wording is correct. No one had noticed the
84
+ incorrect descriptions for a very long time, so it doesn't seem to be critical problem.
85
+
86
  = 2.0.4 =
87
  * Change: [header_image] updated to support WP 4.4 srcset image sizes
88
  * New: Pre and Post #header div position for Header Widget Area
weaverx-ts.php CHANGED
@@ -5,12 +5,12 @@ 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.0.5
9
  License: GPL V3
10
 
11
  Weaver Xtreme Theme Support
12
 
13
- Copyright (C) 2014-2015 Bruce E. Wampler - weaver@weavertheme.com
14
 
15
  This program is free software: you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
@@ -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.0.5');
37
  define ('WVRX_TS_MINIFY','.min'); // '' for dev, '.min' for production
38
  define ('WVRX_TS_APPEARANCE_PAGE', false );
39
 
@@ -155,11 +155,11 @@ function wvrx_ts_child_saverestore_action() {
155
 
156
  //add_action('weaverx_check_updates', 'weaverx_check_updates_action');
157
 
158
- function weaverx_check_updates_action() {
159
  require_once('wp-updates-theme-1411.php');
160
  $theme = basename(get_template_directory());
161
  new WPUpdatesThemeUpdater_1411( 'http://wp-updates.com/api/2/theme', $theme );
162
- }
163
 
164
  // --------------------------------------
165
  function wvrx_ts_per_page_report() {
@@ -219,4 +219,5 @@ function wvrx_ts_scan_section($what) {
219
  echo '</ul>';
220
  }
221
  } // end only load if Weaver Xtreme installed
 
222
  ?>
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
12
 
13
+ Copyright (C) 2014-2016 Bruce E. Wampler - weaver@weavertheme.com
14
 
15
  This program is free software: you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
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
 
155
 
156
  //add_action('weaverx_check_updates', 'weaverx_check_updates_action');
157
 
158
+ /*function weaverx_check_updates_action() {
159
  require_once('wp-updates-theme-1411.php');
160
  $theme = basename(get_template_directory());
161
  new WPUpdatesThemeUpdater_1411( 'http://wp-updates.com/api/2/theme', $theme );
162
+ } */
163
 
164
  // --------------------------------------
165
  function wvrx_ts_per_page_report() {
219
  echo '</ul>';
220
  }
221
  } // end only load if Weaver Xtreme installed
222
+
223
  ?>