Favicon by RealFaviconGenerator - Version 1.0.6

Version Description

  • Error management improved during favicon install.
Download this release

Release Info

Developer phbernard
Plugin Icon 128x128 Favicon by RealFaviconGenerator
Version 1.0.6
Comparing to
See all releases

Code changes from version 1.0.5 to 1.0.6

README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: phbernard
3
  Tags: favicon, apple-touch-icon, realfavicongenerator
4
  Requires at least: 3.5
5
  Tested up to: 3.9.1
6
- Stable tag: 1.0.5
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -61,6 +61,10 @@ This screen presents you a preview of the favicon you various platforms, so you
61
 
62
  == Changelog ==
63
 
 
 
 
 
64
  = 1.0.5 =
65
 
66
  - Do not try to rewrite the favicon files URL when .htaccess is not writable.
3
  Tags: favicon, apple-touch-icon, realfavicongenerator
4
  Requires at least: 3.5
5
  Tested up to: 3.9.1
6
+ Stable tag: 1.0.6
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.0.6 =
65
+
66
+ - Error management improved during favicon install.
67
+
68
  = 1.0.5 =
69
 
70
  - Do not try to rewrite the favicon files URL when .htaccess is not writable.
admin/views/settings.php CHANGED
@@ -158,26 +158,34 @@
158
  });
159
 
160
  <?php if ( $new_favicon_params_url ) { ?>
161
- jQuery.get('<?php echo $ajax_url ?>', data, function(response) {
162
- if (response.status == 'success') {
163
- jQuery('#preview_image').attr('src', response.preview_url);
164
- jQuery('#install_in_progress_message').fadeOut(function() {
165
- jQuery('#install_completed_message').fadeIn();
166
- jQuery('#install_completed_container').fadeIn();
167
- jQuery('#favicon_form_container').fadeIn();
168
- });
169
- }
170
- else {
171
- var msg = "An error occured";
172
- if (response.message != null) {
173
- msg += ": " + response.message;
 
 
 
 
 
 
174
  }
 
 
 
175
  jQuery('#install_error_message p').html(msg);
176
  jQuery('#install_in_progress_message').fadeOut(function() {
177
  jQuery('#install_error_message').fadeIn();
178
  });
179
- }
180
- });
181
  <?php } ?>
182
 
183
  var fileFrame;
158
  });
159
 
160
  <?php if ( $new_favicon_params_url ) { ?>
161
+ jQuery.get('<?php echo $ajax_url ?>', data)
162
+ .done(function(response) {
163
+ if (response.status == 'success') {
164
+ jQuery('#preview_image').attr('src', response.preview_url);
165
+ jQuery('#install_in_progress_message').fadeOut(function() {
166
+ jQuery('#install_completed_message').fadeIn();
167
+ jQuery('#install_completed_container').fadeIn();
168
+ jQuery('#favicon_form_container').fadeIn();
169
+ });
170
+ }
171
+ else {
172
+ var msg = "An error occured";
173
+ if (response.message != null) {
174
+ msg += ": " + response.message;
175
+ }
176
+ jQuery('#install_error_message p').html(msg);
177
+ jQuery('#install_in_progress_message').fadeOut(function() {
178
+ jQuery('#install_error_message').fadeIn();
179
+ });
180
  }
181
+ })
182
+ .fail(function() {
183
+ var msg = "An internal error occured";
184
  jQuery('#install_error_message p').html(msg);
185
  jQuery('#install_in_progress_message').fadeOut(function() {
186
  jQuery('#install_error_message').fadeIn();
187
  });
188
+ });
 
189
  <?php } ?>
190
 
191
  var fileFrame;
favicon-by-realfavicongenerator.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Favicon by RealFaviconGenerator
13
  * Plugin URI: http://realfavicongenerator.net/extensions/wordpress
14
  * Description: Create and install your favicon for all platforms: PC/Mac of course, but also iPhone/iPad, Android devices, Windows 8 tablets, etc.
15
- * Version: 1.0.5
16
  * Author: Philippe Bernard
17
  * Author URI: http://realfavicongenerator.net/
18
  * License: GPLv2
12
  * Plugin Name: Favicon by RealFaviconGenerator
13
  * Plugin URI: http://realfavicongenerator.net/extensions/wordpress
14
  * Description: Create and install your favicon for all platforms: PC/Mac of course, but also iPhone/iPad, Android devices, Windows 8 tablets, etc.
15
+ * Version: 1.0.6
16
  * Author: Philippe Bernard
17
  * Author URI: http://realfavicongenerator.net/
18
  * License: GPLv2