Unique Headers - Version 1.5.2

Version Description

  • Fixing bug reported by multiple users, which caused PHP errors on some setups.
Download this release

Release Info

Developer ryanhellyer
Plugin Icon wp plugin Unique Headers
Version 1.5.2
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.2

Files changed (3) hide show
  1. inc/legacy.php +6 -0
  2. index.php +1 -1
  3. readme.txt +3 -1
inc/legacy.php CHANGED
@@ -63,6 +63,12 @@ add_filter( 'unique_header_fallback_images', 'unique_header_fallback_images' );
63
  * @global object $wpdb The main WordPress database object
64
  */
65
  function unique_header_wpdbfix() {
 
 
 
 
 
 
66
  global $wpdb;
67
  $wpdb->taxonomymeta = "{$wpdb->prefix}taxonomymeta";
68
  }
63
  * @global object $wpdb The main WordPress database object
64
  */
65
  function unique_header_wpdbfix() {
66
+
67
+ // Bail out now if Taxonomy Metadata plugin not installed
68
+ if ( class_exists( 'Taxonomy_Metadata' ) ) {
69
+ return;
70
+ }
71
+
72
  global $wpdb;
73
  $wpdb->taxonomymeta = "{$wpdb->prefix}taxonomymeta";
74
  }
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Unique Headers
4
  Plugin URI: https://geek.hellyer.kiwi/plugins/unique-headers/
5
  Description: Unique Headers
6
- Version: 1.5.1
7
  Author: Ryan Hellyer
8
  Author URI: https://geek.hellyer.kiwi/
9
  Text Domain: unique-headers
3
  Plugin Name: Unique Headers
4
  Plugin URI: https://geek.hellyer.kiwi/plugins/unique-headers/
5
  Description: Unique Headers
6
+ Version: 1.5.2
7
  Author: Ryan Hellyer
8
  Author URI: https://geek.hellyer.kiwi/
9
  Text Domain: unique-headers
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: custom-header, header, headers, images, page, post, plugin, image, images,
4
  Donate link: https://geek.hellyer.kiwi/donate/
5
  Requires at least: 4.3
6
  Tested up to: 4.5
7
- Stable tag: 1.5.1
8
 
9
 
10
 
@@ -97,6 +97,8 @@ No, I'm too busy. Having said that, if you are willing to pay me a small fortune
97
 
98
  == Changelog ==
99
 
 
 
100
 
101
  = 1.5.1 =
102
  * Overhauled outdated FAQ section of readme.
4
  Donate link: https://geek.hellyer.kiwi/donate/
5
  Requires at least: 4.3
6
  Tested up to: 4.5
7
+ Stable tag: 1.5.2
8
 
9
 
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 1.5.2 =
101
+ * Fixing bug reported by multiple users, which caused PHP errors on some setups.
102
 
103
  = 1.5.1 =
104
  * Overhauled outdated FAQ section of readme.