Version Description
- Added checks in file to see if WordPress is loaded.
- Hooking class instantiation in later, due to taxonomies sometimes not being loaded in time.
Download this release
Release Info
| Developer | ryanhellyer |
| Plugin | |
| Version | 1.6.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.6 to 1.6.1
- inc/legacy.php +10 -0
- index.php +2 -3
- readme.txt +6 -2
inc/legacy.php
CHANGED
|
@@ -1,5 +1,15 @@
|
|
| 1 |
<?php
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
/*
|
| 4 |
* Legacy fallback for old images
|
| 5 |
*
|
| 1 |
<?php
|
| 2 |
|
| 3 |
+
/**
|
| 4 |
+
* Do not continue processing since file was called directly
|
| 5 |
+
*
|
| 6 |
+
* @since 1.6.1
|
| 7 |
+
* @author Ryan Hellyer <ryanhellyer@gmail.com>
|
| 8 |
+
*/
|
| 9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
| 10 |
+
die( 'Eh! What you doin in here?' );
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
/*
|
| 14 |
* Legacy fallback for old images
|
| 15 |
*
|
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.6
|
| 7 |
Author: Ryan Hellyer
|
| 8 |
Author URI: https://geek.hellyer.kiwi/
|
| 9 |
Text Domain: unique-headers
|
|
@@ -79,10 +79,9 @@ class Unique_Headers_Instantiate {
|
|
| 79 |
|
| 80 |
// Add hooks
|
| 81 |
add_action( 'plugins_loaded', array( $this, 'localization' ), 5 );
|
| 82 |
-
add_action( 'init', array( $this, 'instantiate_classes' ) );
|
| 83 |
}
|
| 84 |
|
| 85 |
-
|
| 86 |
/**
|
| 87 |
* Instantiate classes
|
| 88 |
*
|
| 3 |
Plugin Name: Unique Headers
|
| 4 |
Plugin URI: https://geek.hellyer.kiwi/plugins/unique-headers/
|
| 5 |
Description: Unique Headers
|
| 6 |
+
Version: 1.6.1
|
| 7 |
Author: Ryan Hellyer
|
| 8 |
Author URI: https://geek.hellyer.kiwi/
|
| 9 |
Text Domain: unique-headers
|
| 79 |
|
| 80 |
// Add hooks
|
| 81 |
add_action( 'plugins_loaded', array( $this, 'localization' ), 5 );
|
| 82 |
+
add_action( 'init', array( $this, 'instantiate_classes' ), 20 );
|
| 83 |
}
|
| 84 |
|
|
|
|
| 85 |
/**
|
| 86 |
* Instantiate classes
|
| 87 |
*
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: ryanhellyer
|
|
| 3 |
Tags: custom-header, header, headers, images, page, post, plugin, image, images, categories, gallery, media, header-image, header-images, taxonomy, tag, category, posts, pages, taxonomies, post, page, unique, custom
|
| 4 |
Donate link: https://geek.hellyer.kiwi/donate/
|
| 5 |
Requires at least: 4.3
|
| 6 |
-
Tested up to: 4.
|
| 7 |
-
Stable tag: 1.6
|
| 8 |
|
| 9 |
|
| 10 |
|
|
@@ -97,6 +97,10 @@ No, I'm too busy. Having said that, if you are willing to pay me a small fortune
|
|
| 97 |
|
| 98 |
== Changelog ==
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
= 1.6 =
|
| 101 |
* Removed admin notice from everywhere but the plugins page.
|
| 102 |
|
| 3 |
Tags: custom-header, header, headers, images, page, post, plugin, image, images, categories, gallery, media, header-image, header-images, taxonomy, tag, category, posts, pages, taxonomies, post, page, unique, custom
|
| 4 |
Donate link: https://geek.hellyer.kiwi/donate/
|
| 5 |
Requires at least: 4.3
|
| 6 |
+
Tested up to: 4.6
|
| 7 |
+
Stable tag: 1.6.1
|
| 8 |
|
| 9 |
|
| 10 |
|
| 97 |
|
| 98 |
== Changelog ==
|
| 99 |
|
| 100 |
+
= 1.6.1 =
|
| 101 |
+
* Added checks in file to see if WordPress is loaded.
|
| 102 |
+
* Hooking class instantiation in later, due to taxonomies sometimes not being loaded in time.
|
| 103 |
+
|
| 104 |
= 1.6 =
|
| 105 |
* Removed admin notice from everywhere but the plugins page.
|
| 106 |
|
