WP Staging – DB & File Duplicator & Migration - Version 1.1.6

Version Description

  • New: Add download link to WP Staging Beta Version 2.0.1
Download this release

Release Info

Developer ReneHermi
Plugin Icon 128x128 WP Staging – DB & File Duplicator & Migration
Version 1.1.6
Comparing to
See all releases

Code changes from version 1.1.5 to 1.1.6

CONTRIBUTING.md DELETED
@@ -1,38 +0,0 @@
1
- #Contribute To Quick Adsense Reloaded
2
-
3
- Community made patches, localisations, bug reports and contributions are always welcome.
4
-
5
- When contributing please ensure you follow the guidelines below so that we can keep on top of things.
6
-
7
- __Please Note:__ GitHub is for bug reports and contributions only.
8
-
9
- ## Getting Started
10
-
11
- * Submit a ticket for your issue, assuming one does not already exist.
12
- * Raise it on our [Issue Tracker](https://github.com/rene-hermenau/quick-adsense-reloaded/issues)
13
- * Clearly describe the issue including steps to reproduce the bug.
14
- * Make sure you fill in the earliest version that you know has the issue as well as the version of WordPress you're using.
15
-
16
- ## Making Changes
17
-
18
- * Fork the repository on GitHub
19
- * Make the changes to your forked repository
20
- * Ensure you stick to the [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards)
21
- * When committing, reference your issue (if present) and include a note about the fix
22
- * (coming soon) If possible, and if applicable, please also add/update unit tests for your changes
23
- * Push the changes to your fork and submit a pull request to the 'master' branch of the Quick Adsense Reloaded repository
24
-
25
- ## Code Documentation
26
-
27
- * We ensure that every Quick Adsense Reloaded function is documented well and follows the standards set by phpDoc
28
- * An example function can be found [here](https://gist.github.com/rene-hermenau/8d3d7ee0633ee2f64b4b)
29
- * Please make sure that every function is documented so that when we update our API Documentation it will complete
30
- * If you're adding/editing a function in a class, make sure to add `@access {private|public|protected}`
31
- * Finally, please use tabs and not spaces. The tab indent size should be 4 for all Quick Adsense Reloaded code.
32
-
33
- At this point you're waiting on us to merge your pull request. We'll review all pull requests, and make suggestions and changes if necessary.
34
-
35
- # Additional Resources
36
- * [General GitHub Documentation](http://help.github.com/)
37
- * [GitHub Pull Request documentation](http://help.github.com/send-pull-requests/)
38
- * [PHPUnit Tests Guide](http://phpunit.de/manual/current/en/writing-tests-for-phpunit.html)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/admin/admin-notices.php CHANGED
@@ -29,6 +29,8 @@ function wpstg_admin_messages() {
29
 
30
  wpstg_start_poll();
31
 
 
 
32
  if ( wpstg_is_admin_page() && !wp_is_writable( wpstg_get_upload_dir() ) ){
33
  echo '<div class="error">';
34
  echo '<p><strong>WP Staging Folder Permission error: </strong>' . wpstg_get_upload_dir() . ' is not write and/or readable. <br> Check if the folder <strong>'.wpstg_get_upload_dir().'</strong> exists! File permissions should be chmod 755 or 777.</p>';
@@ -345,4 +347,52 @@ function wpstg_plugin_update_message( $args ) {
345
  update_option('wpstg_hide_beta','yes');
346
  echo json_encode(array("success")); exit;
347
  }
348
- add_action('wp_ajax_wpstg_hide_beta','wpstg_hide_beta_div');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  wpstg_start_poll();
31
 
32
+ wpstg_show_download();
33
+
34
  if ( wpstg_is_admin_page() && !wp_is_writable( wpstg_get_upload_dir() ) ){
35
  echo '<div class="error">';
36
  echo '<p><strong>WP Staging Folder Permission error: </strong>' . wpstg_get_upload_dir() . ' is not write and/or readable. <br> Check if the folder <strong>'.wpstg_get_upload_dir().'</strong> exists! File permissions should be chmod 755 or 777.</p>';
347
  update_option('wpstg_hide_beta','yes');
348
  echo json_encode(array("success")); exit;
349
  }
350
+ add_action('wp_ajax_wpstg_hide_beta','wpstg_hide_beta_div');
351
+
352
+
353
+ /**
354
+ * Show download notice for beta version
355
+ */
356
+ function wpstg_show_download(){
357
+ $notice = '<div class="wpstg_notice_download notice" style="box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);">
358
+ <p>If you want to support development of <strong>WP STAGING</strong> please download our latest <strong>beta version 2.0.1</strong>: <a href="https://wp-staging.com/beta.php" target="_new">https://wp-staging.com/beta.php</a> <br>
359
+ Version 2.0.1 is able to handle even the largest WordPress sites. Please send your feedback to <a href="mailto:support@wp-staging.com?subject=Beta Version Support&">support@wp-staging.com</a> or via contact form <a href="https://wp-staging.com/support/" target="_new">https://wp-staging.com/support/</a>.<br>Note: The beta version should not be used on production sites.
360
+ <p>
361
+ <ul>
362
+ <li><a href="javascript:void(0);" class="wpstg_hide_download" title="I understand" style="font-weight:bold;color:#00a0d2;">Do not show this again</a></li>
363
+ </ul>
364
+ </div>
365
+ <script>
366
+ jQuery( document ).ready(function( $ ) {
367
+ jQuery(\'.wpstg_hide_download\').click(function(){
368
+ var data={\'action\':\'wpstg_hide_download\'}
369
+ jQuery.ajax({
370
+ url: "'.admin_url( 'admin-ajax.php' ).'",
371
+ type: "post",
372
+ data: data,
373
+ dataType: "json",
374
+ async: !0,
375
+ success: function(e) {
376
+ if (e=="success") {
377
+ jQuery(\'.wpstg_notice_download\').slideUp(\'fast\');
378
+ }
379
+ }
380
+ });
381
+ })
382
+ });
383
+ </script>
384
+ ';
385
+
386
+ if( get_option('wpstg_download') !== "no" && wpstg_is_admin_page() ){
387
+ echo $notice;
388
+ }
389
+ }
390
+
391
+ /**
392
+ * Ajax Action for hiding beta download notice
393
+ */
394
+ function wpstg_hide_download(){
395
+ update_option('wpstg_download','no');
396
+ echo json_encode(array("success")); exit;
397
+ }
398
+ add_action('wp_ajax_wpstg_hide_download','wpstg_hide_download');
readme.txt CHANGED
@@ -1,4 +1,4 @@
1
- === WP Staging - DB & File Duplicator & Migration ===
2
 
3
  Author URL: https://wordpress.org/plugins/wp-staging
4
  Plugin URL: https://wordpress.org/plugins/wp-staging
@@ -8,22 +8,24 @@ License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: staging, duplication, cloning, clone, migration, sandbox, test site, testing, backup, post, admin, administration, duplicate posts
10
  Requires at least: 3.6+
11
- Tested up to: 4.7.9
12
- Stable tag: 1.1.5
13
 
14
  A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
15
 
16
  == Description ==
17
 
18
- <strong>This cloning and staging plugin is well tested but still work in progress! <br>
19
  If you find a bug please open a ticket in the [support request](https://wordpress.org/support/plugin/wp-staging/ "support forum"). Every issue will be fixed asap!
20
  </strong>
21
  <br /><br />
22
- <strong>Note: </strong> This plugin is not able to push back your changes to the live site at the moment!
23
- Please let us know your most requested feature and use our quick poll. It only takes one minute of your time:
24
- [Start the Poll](https://docs.google.com/forms/d/e/1FAIpQLScZ-dO5WffV3xObn16LwG05tr1HrADD_8L4wbTxPHqoPssVcg/viewform?c=0&w=1&usp=mail_form_link "wp staging poll")
25
  <br /> <br />
26
 
 
 
 
 
27
 
28
  <blockquote>
29
  <h4> WP Staging for WordPress Migration </h4>
@@ -143,6 +145,9 @@ After installation goto the settings page 'Staging' and do your adjustments ther
143
 
144
  == Changelog ==
145
 
 
 
 
146
  = 1.1.5 =
147
  * Fix: Admin notice is throwing a false positive write permission error
148
  * New: Move log folder to wp-content/uploads/wp-staging/logs
@@ -265,5 +270,5 @@ After installation goto the settings page 'Staging' and do your adjustments ther
265
 
266
  == Upgrade Notice ==
267
 
268
- = 1.1.3 =
269
- 1.1.3 <strong>Compatible up to WP 4.7.2</strong>
1
+ === WP Staging - DB & File Duplicator & Migration ===
2
 
3
  Author URL: https://wordpress.org/plugins/wp-staging
4
  Plugin URL: https://wordpress.org/plugins/wp-staging
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: staging, duplication, cloning, clone, migration, sandbox, test site, testing, backup, post, admin, administration, duplicate posts
10
  Requires at least: 3.6+
11
+ Tested up to: 4.8
12
+ Stable tag: 1.1.6
13
 
14
  A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
15
 
16
  == Description ==
17
 
18
+ <strong>This cloning and staging plugin is well tested but still work in progress! <br><br>
19
  If you find a bug please open a ticket in the [support request](https://wordpress.org/support/plugin/wp-staging/ "support forum"). Every issue will be fixed asap!
20
  </strong>
21
  <br /><br />
22
+ <strong>Note: </strong> For pushing plugins and theme files to live site, check out [https://wp-staging.com/](https://wp-staging.com/ "WP Staging Pro")
 
 
23
  <br /> <br />
24
 
25
+ If you want to support development please download latest <strong>beta version 2.0.3</strong>: [https://wp-staging.com/beta.php](https://wp-staging.com/beta.php "download beta")
26
+ Version 2.0.3 is able to handle even the largest WordPress sites. Please send your feedback to support [at] wp-staging.com or via contact form [https://wp-staging.com/support/](https://wp-staging.com/support/ "support beta version")
27
+
28
+ <br /> <br />
29
 
30
  <blockquote>
31
  <h4> WP Staging for WordPress Migration </h4>
145
 
146
  == Changelog ==
147
 
148
+ = 1.1.6 =
149
+ * New: Add download link to WP Staging Beta Version 2.0.1
150
+
151
  = 1.1.5 =
152
  * Fix: Admin notice is throwing a false positive write permission error
153
  * New: Move log folder to wp-content/uploads/wp-staging/logs
270
 
271
  == Upgrade Notice ==
272
 
273
+ = 1.1.6 =
274
+ 1.1.6 <strong>Please test our beta version 2.0.1 which has been improved tremendously: https://wp-staging.com/beta.php </strong>
uninstall.php CHANGED
@@ -30,5 +30,6 @@ if( isset( $wpstg_options['uninstall_on_delete'] ) ) {
30
  delete_option( 'wpstg_settings' );
31
  delete_option( 'wpstg_existing_clones' );
32
  delete_option( 'wpstg_start_poll' );
 
33
  }
34
 
30
  delete_option( 'wpstg_settings' );
31
  delete_option( 'wpstg_existing_clones' );
32
  delete_option( 'wpstg_start_poll' );
33
+ delete_option( 'wpstg_download' );
34
  }
35
 
wp-staging.php CHANGED
@@ -1,4 +1,4 @@
1
- <?php
2
 
3
  /**
4
  * Plugin Name: WP Staging
@@ -6,7 +6,7 @@
6
  * Description: Create a staging clone site for testing & developing
7
  * Author: WP-Staging, René Hermenau
8
  * Author URI: https://wordpress.org/plugins/wp-staging
9
- * Version: 1.1.5
10
  * Text Domain: wpstg
11
  * Domain Path: languages
12
 
@@ -34,11 +34,11 @@ if ( !defined('ABSPATH') )
34
 
35
  // Plugin version
36
  if ( !defined('WPSTG_VERSION') ) {
37
- define('WPSTG_VERSION', '1.1.5');
38
  }
39
  // Is compatible up to WordPress version
40
  if ( !defined('WPSTG_WP_COMPATIBLE') ) {
41
- define('WPSTG_WP_COMPATIBLE', '4.7.4');
42
  }
43
 
44
  // Plugin Folder Path
1
+ <?php
2
 
3
  /**
4
  * Plugin Name: WP Staging
6
  * Description: Create a staging clone site for testing & developing
7
  * Author: WP-Staging, René Hermenau
8
  * Author URI: https://wordpress.org/plugins/wp-staging
9
+ * Version: 1.1.6
10
  * Text Domain: wpstg
11
  * Domain Path: languages
12
 
34
 
35
  // Plugin version
36
  if ( !defined('WPSTG_VERSION') ) {
37
+ define('WPSTG_VERSION', '1.1.6');
38
  }
39
  // Is compatible up to WordPress version
40
  if ( !defined('WPSTG_WP_COMPATIBLE') ) {
41
+ define('WPSTG_WP_COMPATIBLE', '4.8.2');
42
  }
43
 
44
  // Plugin Folder Path