Skip to content

Commit

Permalink
Merge pull request #172 from TenthPres/next
Browse files Browse the repository at this point in the history
Maintenance Release
  • Loading branch information
jkrrv committed Feb 7, 2024
2 parents 8fccb2d + b9e63cc commit 2ed8da7
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A WordPress Plugin for integrating with TouchPoint Church Management Software.",
"license": "AGPL-3.0-or-later",
"type": "wordpress-plugin",
"version": "0.0.36",
"version": "0.0.37",
"keywords": [
"wordpress",
"wp",
Expand Down
6 changes: 3 additions & 3 deletions i18n/TouchPoint-WP.pot
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Copyright (C) 2023 James K
# Copyright (C) 2024 James K
# This file is distributed under the AGPLv3+.
msgid ""
msgstr ""
"Project-Id-Version: TouchPoint WP 0.0.36\n"
"Project-Id-Version: TouchPoint WP 0.0.37\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/TouchPoint-WP\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-10-22T18:00:47+00:00\n"
"POT-Creation-Date: 2024-02-07T14:00:10+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.8.1\n"
"X-Domain: TouchPoint-WP\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "touchpoint-wp",
"version": "0.0.36",
"version": "0.0.37",
"description": "A WordPress Plugin for integrating with TouchPoint Church Management Software.",
"directories": {
"doc": "docs"
Expand Down
4 changes: 2 additions & 2 deletions src/TouchPoint-WP/Involvement.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ private static function computeCommonOccurrences(array $meetings = [], array $sc
{
try {
$siteTz = wp_timezone();
$now = new DateTimeImmutable(null, $siteTz);
$now = new DateTimeImmutable("now", $siteTz);
} catch (Exception $e) {
return null;
}
Expand Down Expand Up @@ -2116,7 +2116,7 @@ final protected static function updateInvolvementPostsForType(
$postsToKeep = [];

try {
$now = new DateTimeImmutable(null, $siteTz);
$now = new DateTimeImmutable("now", $siteTz);
$aYear = new DateInterval('P1Y');
$nowPlus1Y = $now->add($aYear);
unset($aYear);
Expand Down
4 changes: 2 additions & 2 deletions src/TouchPoint-WP/Partner.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ public static function updateFromTouchPoint(bool $verbose = false)
wp_set_post_terms($post->ID, $category, TouchPointWP::TAX_GP_CATEGORY, false);
}

// Title & Slug
if ($post->post_title != $title) { // only update if there's a change. Otherwise, urls increment.
// Title & Slug -- slugs should only be updated if there's a reason, like a title change. Otherwise, they increment.
if ($post->post_title != $title || str_contains($post->post_name, "__trashed")) {
$post->post_title = $title;
$post->post_name = ''; // Slug will regenerate;
}
Expand Down
6 changes: 3 additions & 3 deletions src/TouchPoint-WP/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,11 @@ public static function updateCron(): void
/**
* Handle which data should be converted to JSON. Used for posting to the API.
*
* @return mixed data which can be serialized by json_encode
* @return object data which can be serialized by json_encode
*/
public function jsonSerialize()
public function jsonSerialize(): object
{
return [
return (object)[
'name' => $this->name,
'type' => $this->type,
'p1' => $this->p1
Expand Down
2 changes: 1 addition & 1 deletion src/TouchPoint-WP/TouchPointWP.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TouchPointWP
/**
* Version number
*/
public const VERSION = "0.0.36";
public const VERSION = "0.0.37";

/**
* The Token
Expand Down
2 changes: 1 addition & 1 deletion src/python/WebApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import linecache
import sys

VERSION = "0.0.36"
VERSION = "0.0.37"

sgContactEvName = "Contact"

Expand Down
8 changes: 4 additions & 4 deletions src/templates/involvement-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,24 @@
</article>

<?php if ($settings->hierarchical) {
$children = get_children([
$single_children = get_children([
'post_parent' => $inv->post_id,
'orderby' => 'title',
'order' => 'ASC',
'post_type' => $postType
]);
if (count($children) > 0) {
if (count($single_children) > 0) {
echo "<div class='involvement-list child-involvements'>";
}
foreach ($children as $post) {
foreach ($single_children as $post) {
/** @var WP_Post $post */
$loadedPart = get_template_part('list-item', 'involvement-list-item');
if ($loadedPart === false) {
TouchPointWP::enqueuePartialsStyle();
require TouchPointWP::$dir . "/src/templates/parts/involvement-list-item.php";
}
}
if (count($children) > 0) {
if (count($single_children) > 0) {
echo "</div>";
}
} ?>
Expand Down
2 changes: 1 addition & 1 deletion touchpoint-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Plugin URI: https://github.com/tenthpres/touchpoint-wp
Update URI: https://github.com/tenthpres/touchpoint-wp
Description: A WordPress Plugin for integrating with TouchPoint Church Management Software.
Version: 0.0.36
Version: 0.0.37
Author: James K
Author URI: https://github.com/jkrrv
License: AGPLv3+
Expand Down

0 comments on commit 2ed8da7

Please sign in to comment.