Unique Headers - Version 1.4.4

Version Description

Download this release

Release Info

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

Code changes from version 1.4.3 to 1.4.4

Files changed (3) hide show
  1. inc/class-dotorg-plugin-review.php +1 -1
  2. index.php +4 -7
  3. readme.txt +2 -1
inc/class-dotorg-plugin-review.php CHANGED
@@ -53,7 +53,7 @@ class DotOrg_Plugin_Review {
53
  public function seconds_to_words( $seconds ) {
54
 
55
  // Get the years
56
- $years = ( intval( $seconds ) / MONTH_IN_SECONDS ) % 4;
57
  if ( $years > 1 ) {
58
  return sprintf( __( '%s years', $this->slug ), $years );
59
  } elseif ( $years > 0) {
53
  public function seconds_to_words( $seconds ) {
54
 
55
  // Get the years
56
+ $years = ( intval( $seconds ) / YEAR_IN_SECONDS ) % 4;
57
  if ( $years > 1 ) {
58
  return sprintf( __( '%s years', $this->slug ), $years );
59
  } elseif ( $years > 0) {
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.4.3
7
  Author: Ryan Hellyer
8
  Author URI: https://geek.hellyer.kiwi/
9
  Text Domain: unique-headers
@@ -64,10 +64,7 @@ class Unique_Headers_Instantiate {
64
  require( 'inc/class-unique-headers-display.php' );
65
  require( 'inc/class-custom-image-meta-box.php' );
66
  require( 'inc/legacy.php' );
67
- /*
68
- Temporary removal due to:
69
- "Warning: Division by zero in /wp-content/plugins/unique-headers/inc/class-dotorg-plugin-review.php on line 56"
70
- "Warning: Division by zero in /wp-content/plugins/unique-headers/inc/class-dotorg-plugin-review.php on line 64"
71
  // Loading dotorg plugin review code
72
  if ( is_admin() ) {
73
  require( 'inc/class-dotorg-plugin-review.php' );
@@ -75,11 +72,11 @@ class Unique_Headers_Instantiate {
75
  array(
76
  'slug' => 'unique-headers', // The plugin slug
77
  'name' => 'Unique Headers', // The plugin name
78
- 'time_limit' => MINUTE_IN_SECONDS, // The time limit at which notice is shown
79
  )
80
  );
81
  }
82
- */
83
  // Add hooks
84
  add_action( 'plugins_loaded', array( $this, 'localization' ), 5 );
85
  add_action( 'init', array( $this, 'instantiate_classes' ) );
3
  Plugin Name: Unique Headers
4
  Plugin URI: https://geek.hellyer.kiwi/plugins/unique-headers/
5
  Description: Unique Headers
6
+ Version: 1.4.4
7
  Author: Ryan Hellyer
8
  Author URI: https://geek.hellyer.kiwi/
9
  Text Domain: unique-headers
64
  require( 'inc/class-unique-headers-display.php' );
65
  require( 'inc/class-custom-image-meta-box.php' );
66
  require( 'inc/legacy.php' );
67
+
 
 
 
68
  // Loading dotorg plugin review code
69
  if ( is_admin() ) {
70
  require( 'inc/class-dotorg-plugin-review.php' );
72
  array(
73
  'slug' => 'unique-headers', // The plugin slug
74
  'name' => 'Unique Headers', // The plugin name
75
+ 'time_limit' => WEEK_IN_SECONDS, // The time limit at which notice is shown
76
  )
77
  );
78
  }
79
+
80
  // Add hooks
81
  add_action( 'plugins_loaded', array( $this, 'localization' ), 5 );
82
  add_action( 'init', array( $this, 'instantiate_classes' ) );
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.4.3
8
 
9
 
10
 
@@ -126,6 +126,7 @@ No, I'm too busy. Having said that, if you are willing to pay me a small fortune
126
 
127
  == Changelog ==
128
 
 
129
  Version 1.4.3: Temporarily removing plugin review class until bugs are fixed.
130
  Version 1.4.2: Adding a plugin review class.
131
  Version 1.4.1: Instantiating the plugin later (allows for adding additional post-types in themes).
4
  Donate link: https://geek.hellyer.kiwi/donate/
5
  Requires at least: 4.3
6
  Tested up to: 4.5
7
+ Stable tag: 1.4.4
8
 
9
 
10
 
126
 
127
  == Changelog ==
128
 
129
+ Version 1.4.4: Adding plugin review class back, with correct time stamp set.
130
  Version 1.4.3: Temporarily removing plugin review class until bugs are fixed.
131
  Version 1.4.2: Adding a plugin review class.
132
  Version 1.4.1: Instantiating the plugin later (allows for adding additional post-types in themes).