Skip to content

Commit

Permalink
Refresh and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Sep 24, 2020
1 parent 6c3c125 commit 90d37b0
Show file tree
Hide file tree
Showing 12 changed files with 409 additions and 311 deletions.
2 changes: 1 addition & 1 deletion includes/class-kind-metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public static function explode( $string ) {
public static function kind_the_time( $prefix, $label, $datetime, $class ) {
$tz_seconds = get_option( 'gmt_offset' ) * 3600;
$offset = tz_seconds_to_offset( $tz_seconds );
$time = divide_datetime( $datetime );
$time = divide_datetime( $datetime );
if ( isset( $time['offset'] ) ) {
$offset = $time['offset'];
}
Expand Down
2 changes: 1 addition & 1 deletion includes/class-kind-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public function get_cite() {
'url' => $this->get_url(),
'summary' => $this->get_html( 'summary' ),
'published' => $this->get_datetime_property( 'published' ),
'uid' => $this->id
'uid' => $this->id,
)
)
);
Expand Down
4 changes: 2 additions & 2 deletions includes/class-kind-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,15 +599,15 @@ public static function display_duration( $interval ) {
if ( ! $interval ) {
return '';
}
$bits = array(
$bits = array(
'year' => $interval->y,
'month' => $interval->m,
'day' => $interval->d,
'hour' => $interval->h,
'minute' => $interval->i,
'second' => $interval->s,
);
$return = '';
$return = '';
if ( $bits['year'] > 0 ) {
/* translators: singular and plural */
$return .= sprintf( _n( '%d year', '%d years', $bits['year'], 'indieweb-post-kinds' ), $bits['year'] );
Expand Down
4 changes: 2 additions & 2 deletions includes/time-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function display_formatted_datetime( $date ) {
function divide_datetime( $datetime ) {
if ( ! $datetime ) {
return false;
}
}

$time = array();
$time['date'] = $datetime->format( 'Y-m-d' );
Expand All @@ -258,7 +258,7 @@ function divide_datetime( $datetime ) {
}
$time['time'] = $datetime->format( 'H:i:s' );
$time['offset'] = get_datetime_offset( $datetime );
$time['class'] = get_class( $datetime );
$time['class'] = get_class( $datetime );
return $time;
}

Expand Down
4 changes: 2 additions & 2 deletions indieweb-post-kinds.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Plugin Name: Post Kinds
* Plugin URI: https://wordpress.org/plugins/indieweb-post-kinds/
* Description: Ever want to reply to someone else's post with a post on your own site? Or to "like" someone else's post, but with your own site?
* Version: 3.3.6
* Version: 3.4.0
* Author: David Shanske
* Author URI: https://david.shanske.com
* Text Domain: indieweb-post-kinds
Expand Down Expand Up @@ -50,7 +50,7 @@ function ( $class ) {
add_action( 'init', array( 'Post_Kinds_Plugin', 'init' ) );

class Post_Kinds_Plugin {
public static $version = '3.3.6';
public static $version = '3.4.0';
public static function init() {
// Add Kind Taxonomy.
Kind_Taxonomy::init();
Expand Down
8 changes: 1 addition & 7 deletions js/jquery.timepicker.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion js/moment.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 90d37b0

Please sign in to comment.