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

new calendar endpoints | part 4/4 | endpoint implementations #955

Open
wants to merge 53 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
76bdf3f
Autoload endpoint files
carstingaxion Sep 27, 2024
24ee3f8
NEW Endpoint Class for Custom Rewrite Rules and Query Handling
carstingaxion Sep 27, 2024
27f9efb
New Abstract class for defining custom endpoint types
carstingaxion Sep 27, 2024
caa9eff
Fix for CS
carstingaxion Sep 27, 2024
a32cdb7
NEW Class responsible for handling redirect-based endpoints
carstingaxion Sep 27, 2024
f5e6bd3
NEW Class responsible for handling template-based endpoints
carstingaxion Sep 27, 2024
f57774b
The BEGINNING of a unit test
carstingaxion Sep 27, 2024
7688800
Fix for CS
carstingaxion Sep 27, 2024
045f493
Simplify logic wether to load a feed template or anything other for t…
carstingaxion Sep 28, 2024
a2c277b
Fix typo
carstingaxion Sep 28, 2024
313fafd
WIP unit tests
carstingaxion Sep 29, 2024
5be1c95
Move methods into more related class
carstingaxion Sep 30, 2024
b7eafc0
failing test, that I can't figure out
carstingaxion Sep 30, 2024
41f6b3e
NEW tests
carstingaxion Sep 30, 2024
80a1c51
Maybe its pointless to hook this onto the next round?
carstingaxion Sep 30, 2024
35a8512
NEW test for constructor
carstingaxion Sep 30, 2024
0b2d460
NEW test for method get_rewrite_atts()
carstingaxion Sep 30, 2024
d0c9618
NEW test for allow_query_vars() method
carstingaxion Sep 30, 2024
4d29734
Make method avail. to public
carstingaxion Oct 1, 2024
18c0b4d
NEW test for has_feed_template() method
carstingaxion Oct 1, 2024
75b408c
NEW test for is_valid_query() method
carstingaxion Oct 1, 2024
6576b3b
Order test methods like class under test
carstingaxion Oct 1, 2024
f2a8528
Fix for CS
carstingaxion Oct 1, 2024
4994b40
Rename class under test for consistency
carstingaxion Oct 1, 2024
4113308
100% tests for Endpoint_Redirect class
carstingaxion Oct 1, 2024
797af62
Fix for CS
carstingaxion Oct 1, 2024
596070c
DRY out init steps into own get_regex_pattern() method
carstingaxion Oct 1, 2024
b44c554
NEW test for maybe_flush_rewrite_rules() method
carstingaxion Oct 1, 2024
b4d9617
NEW test for get_regex_pattern() method
carstingaxion Oct 1, 2024
8814165
Move activate() method into Endpoint_Types
carstingaxion Oct 1, 2024
d73cb79
Fix for CS
carstingaxion Oct 1, 2024
4e96f17
Fix: Parameter #1 $template of method GatherPress\Core\Endpoints\Endp…
carstingaxion Oct 4, 2024
73a791b
Remove missleading prio from error message.
carstingaxion Oct 4, 2024
dc4384f
Fix: Call to function is_string() with string will always evaluate to…
carstingaxion Oct 4, 2024
7480c2a
Fix: Call to protected method has_feed() of class GatherPress\Core\En…
carstingaxion Oct 4, 2024
fe58c49
New class responsible for managing calendar-related endpoints in Gath…
carstingaxion Oct 21, 2024
3eb3d6c
Add 'Add-to-calendar' to feature list
carstingaxion Oct 21, 2024
29a39b1
Add overrideable-templates , like described in #929
carstingaxion Oct 21, 2024
883a819
NEW '.../event/ical' endpoint
carstingaxion Oct 21, 2024
6633ec5
NEW '.../event/xyz/ical' endpoint
carstingaxion Oct 21, 2024
878159f
NEW '.../venue/abc/ical' endpoint
carstingaxion Oct 21, 2024
13aaf22
NEW '.../topic/123/ical' endpoint
carstingaxion Oct 21, 2024
34ad38e
Fix for CS
carstingaxion Oct 21, 2024
8f33582
Merge branch 'develop' into feature/fragment-of-pr-831-endpoint-imple…
carstingaxion Oct 21, 2024
b028af0
Fix: Function is_archive invoked with 1 parameter, 0 required.
carstingaxion Oct 22, 2024
0ffbcba
BUGFIX: Remove superflous file
carstingaxion Oct 22, 2024
6ddf147
Fix: Parameter #1 $object_type of function get_object_taxonomies expe…
carstingaxion Oct 22, 2024
acd837b
Fix: Offset 'type' on array{url: string|false, attr: string} in isset…
carstingaxion Oct 22, 2024
a0dfc36
Fix: PHPDoc tag @throws with type GatherPress\Core\Exception is not s…
carstingaxion Oct 22, 2024
b70ef88
Fix: Access to undefined constant GatherPress\Core\Calendars::DATETIM…
carstingaxion Oct 22, 2024
48244f6
Fix: Parameter #1 $string of function str_pad expects string, int given
carstingaxion Oct 22, 2024
65f00a9
Ignore phpstan error (probably introduced with #928)
carstingaxion Oct 25, 2024
3d2dfe6
Fix: MD049/emphasis-style Emphasis style should be consistent
carstingaxion Oct 25, 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
1 change: 1 addition & 0 deletions includes/core/classes/class-autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ static function ( string $class_string = '' ): void {
switch ( $class_type ) {
case 'blocks':
case 'commands':
case 'endpoints':
case 'settings':
case 'traits':
array_pop( $structure );
Expand Down
Loading
Loading