Theme Test Drive - Version 2.8.4

Version Description

  • Removed the versionc hecking code
  • WP 3.5.1 compatible
Download this release

Release Info

Developer freediver
Plugin Icon 128x128 Theme Test Drive
Version 2.8.4
Comparing to
See all releases

Code changes from version 2.8.3 to 2.8.4

Files changed (2) hide show
  1. readme.txt +8 -2
  2. themedrive.php +3 -53
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: freediver
3
  Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=920155875
4
  Tags: theme, themes, admin, test
5
  Requires at least: 2.3
6
- Tested up to: 3.4.1
7
  Stable tag: trunk
8
 
9
  Safely test drive any theme as an administrator, while visitors use the default one.
@@ -18,10 +18,16 @@ Best part is you can even set the testing theme options (if it has them) in the
18
 
19
  You can also preview any theme by adding "?theme=xxx" to your blog URL. For example http://www.myblog.com/?theme=Default
20
 
21
- Plugin by Vladimir Prelovac. Need a <a href="http://www.prelovac.com/vladimir/services">WordPress Consultant</a>?
 
 
22
 
23
  == Changelog ==
24
 
 
 
 
 
25
  = 2.8.3 =
26
  * Update for compatibility to WordPress 3.4.1 by replacing deprecated calls (thanks Lance Willett!)
27
  * Use new WP_Theme API for loading themes and getting theme information
3
  Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=920155875
4
  Tags: theme, themes, admin, test
5
  Requires at least: 2.3
6
+ Tested up to: 4.0
7
  Stable tag: trunk
8
 
9
  Safely test drive any theme as an administrator, while visitors use the default one.
18
 
19
  You can also preview any theme by adding "?theme=xxx" to your blog URL. For example http://www.myblog.com/?theme=Default
20
 
21
+ Plugin by Vladimir Prelovac.
22
+
23
+ Managing Multiple WordPress sites? Check out <a href="https://managewp.com">ManageWP</a>.
24
 
25
  == Changelog ==
26
 
27
+ = 2.8.4 =
28
+ * Removed the versionc hecking code
29
+ * WP 3.5.1 compatible
30
+
31
  = 2.8.3 =
32
  * Update for compatibility to WordPress 3.4.1 by replacing deprecated calls (thanks Lance Willett!)
33
  * Use new WP_Theme API for loading themes and getting theme information
themedrive.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/theme-test-drive
5
  Description: Safely test drive any theme while visitors are using the default one. Includes instant theme preview via thumbnail.
6
  Author: Vladimir Prelovac
7
- Version: 2.8.3
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  To-Do:
@@ -15,7 +15,7 @@
15
 
16
  // // // PLUGIN CODE // // //
17
 
18
- $themedrive_localversion = "2.8.3";
19
 
20
  $wp_themedrive_plugin_url = trailingslashit(get_bloginfo('wpurl')) . PLUGINDIR . '/' . dirname(plugin_basename(__FILE__));
21
 
@@ -328,17 +328,7 @@
328
  global $themedrive_localversion;
329
  global $wp_themedrive_plugin_url;
330
 
331
- $status = themedrive_getinfo();
332
-
333
- $theVersion = isset( $status[1] ) ? $status[1] : '';
334
- $theMessage = isset( $status[3] ) ? $status[3] : '';
335
-
336
-
337
-
338
- if ((version_compare(strval($theVersion), strval($themedrive_localversion), '>') == 1)) {
339
- $msg = 'Latest version available ' . ' <strong>' . $theVersion . '</strong><br />' . $theMessage;
340
- echo '<div id="message" class="updated fade"><p>' . $msg . '</p></div>';
341
- }
342
 
343
  if ( isset( $_POST['button'] ) && 'Enable Theme Drive' == $_POST['button']) {
344
  check_admin_referer('theme-drive');
@@ -459,47 +449,7 @@ Alternatively, disabling this plug-in should also do the trick.
459
  add_action('admin_menu', 'themedrive_add_pages');
460
 
461
 
462
- add_action('after_plugin_row', 'themedrive_check_plugin_version');
463
 
464
- function themedrive_getinfo()
465
- {
466
- $checkfile = "http://svn.wp-plugins.org/theme-test-drive/trunk/themedrive.chk";
467
-
468
- $status = array();
469
- return $status;
470
- $vcheck = wp_remote_fopen($checkfile);
471
-
472
- if ($vcheck) {
473
- $version = $themedrive_localversion;
474
-
475
- $status = explode('@', $vcheck);
476
- return $status;
477
- }
478
- }
479
-
480
- function themedrive_check_plugin_version($plugin)
481
- {
482
- global $plugindir, $themedrive_localversion;
483
-
484
- $theVersion = '';
485
- $theMessage = '';
486
-
487
- if (strpos($plugin, 'themedrive.php') !== false) {
488
- $status = themedrive_getinfo();
489
-
490
- if ( isset( $status[1] ) )
491
- $theVersion = $status[1];
492
- if ( isset( $status[3] ) )
493
- $theMessage = $status[3];
494
-
495
- if ((version_compare(strval($theVersion), strval($themedrive_localversion), '>') == 1)) {
496
- $msg = 'Latest version available ' . ' <strong>' . $theVersion . '</strong><br />' . $theMessage;
497
- echo '<td colspan="5" class="plugin-update" style="line-height:1.2em;">' . $msg . '</td>';
498
- } else {
499
- return;
500
- }
501
- }
502
- }
503
 
504
  function themdrive_js()
505
  {
4
  Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/theme-test-drive
5
  Description: Safely test drive any theme while visitors are using the default one. Includes instant theme preview via thumbnail.
6
  Author: Vladimir Prelovac
7
+ Version: 2.8.4
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  To-Do:
15
 
16
  // // // PLUGIN CODE // // //
17
 
18
+ $themedrive_localversion = "2.8.4";
19
 
20
  $wp_themedrive_plugin_url = trailingslashit(get_bloginfo('wpurl')) . PLUGINDIR . '/' . dirname(plugin_basename(__FILE__));
21
 
328
  global $themedrive_localversion;
329
  global $wp_themedrive_plugin_url;
330
 
331
+
 
 
 
 
 
 
 
 
 
 
332
 
333
  if ( isset( $_POST['button'] ) && 'Enable Theme Drive' == $_POST['button']) {
334
  check_admin_referer('theme-drive');
449
  add_action('admin_menu', 'themedrive_add_pages');
450
 
451
 
 
452
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
453
 
454
  function themdrive_js()
455
  {