Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull master #1

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4d51b77
(feat): disable ES indexable when yard-elasticsearch active (#2)
niekh1234 Dec 14, 2022
6eda606
(fix): properly cast items and add default value
niekh1234 Dec 14, 2022
9e5396e
(chore): clean-up, php8 and compliant with new version of ElasticPress
Jan 26, 2023
c64e464
(feat): replace GF uploads with WP attachments admin
niekh1234 Mar 13, 2023
aeda4d4
(chore): revisit metabox fields
niekh1234 Mar 13, 2023
1db9064
(feat): add adres field
niekh1234 Mar 13, 2023
af49ca5
(refactor): small refactoring
Mar 16, 2023
8067d73
(feat): migration of existing items + api output
Mar 17, 2023
e443348
(chore): release v3.0.0
Mar 21, 2023
2f4b5ef
(fix): bijlageEntity
Mar 24, 2023
bc417d9
(feat): implement CMB2
Apr 17, 2023
9d3d563
(feat): while migrating, post excerpt to meta field
May 2, 2023
e3d456f
(fix): use CURL instead of file_get_contents
May 2, 2023
ccdc6e0
(refactor): date format in api and filling of title on save
May 16, 2023
4df85df
(feat): add show on taxonomy
Jun 15, 2023
b3497ef
(refactor): show on taxonomy method for explanation was called static…
Jul 7, 2023
c822596
(refactor): hide taxonomies from quick edit menu
Jul 7, 2023
b72e8d5
(feat): add file size of attachments to the api response
Sep 8, 2023
9809981
(fix): composing inside GravityFormsUploadToMediaLibrary trait
Oct 12, 2023
3648481
(fix): file size and URL's of attachments in the api response
Oct 12, 2023
15969d5
(chore): release v4.1.4
Oct 12, 2023
766dec8
(feat): add publication date to the api response
Jan 12, 2024
a225813
(feat): implement setting for configuring a fileserver URL
Jan 12, 2024
b637aed
(feat): use 'samenvatting' meta first with the post_excerpt as fallback
Feb 15, 2024
15f5cb6
(fix): unhandled multidimensional arrays from AdresEntity, COORDSEnti…
Feb 15, 2024
ded7131
(chore): add publiccode.yaml
Feb 15, 2024
4a6436c
(feat): add missing fields that are needed by ElasticPress in search …
Feb 15, 2024
43b1b44
(fix): typo in OpenWOOIndexable slug
Feb 15, 2024
0d552d4
(chore): release version 4.2.3
Feb 15, 2024
7aceae9
(fix): typo metabox field Lattitude -> Latitude
Feb 15, 2024
d7c9042
(chore): Updated CMB2 version to v2.11.0
projmunoz Apr 5, 2024
4720368
(refactor): switch out cURL for wp_remote_get so WordPress filters an…
rmpel Jul 10, 2024
1e44b0b
(fix): typos
rmpel Jul 17, 2024
f9ebdaa
(feat): add new fields with double negation for upload status in URLs
rmpel Jul 17, 2024
9de5d59
(chore): release version 4.2.7
Jul 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
(fix): properly cast items and add default value
niekh1234 committed Dec 14, 2022
commit 6eda60655f7c8f925e6b5d7d4f282e1f23ff46bc
36 changes: 20 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,60 @@
# CHANGELOG

## Version 1.0.13

- Fix: improper casting

## Version 1.0.12

- Feat: disable Elasticpress filters when `yard-elasticsearch` is active.
- Feat: disable Elasticpress filters when `yard-elasticsearch` is active.

## Version 1.0.11

- Refactor: config metaboxes array key
- Refactor: config metaboxes array key

## Version 1.0.10

- Refactor: name change OpenWOB becomes OpenWOO
- Refactor: name change OpenWOB becomes OpenWOO

## Version 1.0.9

- Fix: Elasticpress filter 'epwr_decay' expects float value instead of int.
- Fix: Elasticpress filter 'epwr_decay' expects float value instead of int.

## Version 1.0.8

- Feat: add config taxonomies and register per CPT.
- Feat: add config taxonomies and register per CPT.

## Version 1.0.7

- Fix: don't overwrite UUID after generation
- Fix: don't overwrite UUID after generation

## Version 1.0.6

- Chore: add per_page as alias for limit
- Chore: add per_page as alias for limit

## Version 1.0.5

- Chore: format labels in admin.
- Chore: format labels in admin.

## Version 1.0.4

- Fix: remove OpenWOB items from the global post_type indexing for Elasticpress.
- Fix: remove OpenWOB items from the global post_type indexing for Elasticpress.

## Version 1.0.3

- Add UUID for identifier
- RestAPI: findBy UUID instead of custom ID
- Add UUID for identifier
- RestAPI: findBy UUID instead of custom ID

## Version 1.0.2

- Cleanup duplicate code in OpenWOBSyncManager
- Update dependency versions
- Cleanup duplicate code in OpenWOBSyncManager
- Update dependency versions

## Version 1.0.1

- Add excerpt to OpenWOB
- Upgrade PHP-CS-Fixer to version 3.0
- Add excerpt to OpenWOB
- Upgrade PHP-CS-Fixer to version 3.0

## Version 1.0.0

- Initial release
- Initial release
4 changes: 2 additions & 2 deletions openwoo.php
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
* Plugin Name: Yard | OpenWOO
* Plugin URI: https://www.yard.nl/
* Description: Adds OpenWOO implementation
* Version: 1.0.12
* Version: 1.0.13
* Author: Yard | Digital Agency
* Author URI: https://www.yard.nl/
* License: GPL-3.0
@@ -30,7 +30,7 @@
define('OWO_LANGUAGE_DOMAIN', OWO_SLUG);
define('OWO_DIR', basename(__DIR__));
define('OWO_ROOT_PATH', __DIR__);
define('OWO_VERSION', '1.0.11');
define('OWO_VERSION', '1.0.13');

/**
* Manual loaded file: the autoloader.
2 changes: 1 addition & 1 deletion src/OpenWOO/Models/BijlageEntity.php
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ class BijlageEntity extends AbstractEntity

public function getTime(): string
{
$date = (int) $this->data[self::PREFIX . 'Tijdstip_laatste_wijziging_bijlage']['timestamp'] ?? date('now');
$date = (int) ($this->data[self::PREFIX . 'Tijdstip_laatste_wijziging_bijlage']['timestamp'] ?? date('now'));

return (new \DateTime())->setTimestamp($date)->setTimezone(new \DateTimeZone("UTC"))->format("Y-m-d\TH:i:s");
}
2 changes: 1 addition & 1 deletion src/OpenWOO/Models/InfoEntity.php
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ class InfoEntity extends AbstractEntity

public function getTime(): string
{
$date = (int) $this->data[self::PREFIX . 'Tijdstip_laatste_wijziging']['timestamp'];
$date = (int) ($this->data[self::PREFIX . 'Tijdstip_laatste_wijziging']['timestamp'] ?? date('now'));

return (new \DateTime())->setTimestamp($date)->setTimezone(new \DateTimeZone("UTC"))->format("Y-m-d\TH:i:s");
}
2 changes: 1 addition & 1 deletion src/OpenWOO/RestAPI/RestAPIServiceProvider.php
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
* ),
* @OA\Info(
* title="OpenWebConcept OpenWOO API",
* version="1.0.12",
* version="1.0.13",
* termsOfService="https://www.openwebconcept.nl/",
* @OA\Contact(
* name="OpenWebConcept",
2 changes: 1 addition & 1 deletion tests/Unit/bootstrap.php
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@
define('OWO_LANGUAGE_DOMAIN', OWO_SLUG);
define('OWO_DIR', basename(__DIR__));
define('OWO_ROOT_PATH', __DIR__);
define('OWO_VERSION', '1.0.12');
define('OWO_VERSION', '1.0.13');

/**
* Bootstrap WordPress Mock.