2390 Commits

Author SHA1 Message Date
Tetrakern
404479d131 Fix chapter post type
Hierarchical doesn't work as expected.
2024-11-09 12:32:24 +01:00
Tetrakern
dcf41660ac Add customizer options for header background color 2024-11-07 02:44:50 +01:00
Tetrakern
faf31fe3f8 Fix missing OAuth profile section 2024-11-06 21:29:41 +01:00
Tetrakern
eae739f074 Remove post_fields filter
It did make the SQL faster, but the WP_Query slower. Something internally, most likely.
2024-11-05 23:58:26 +01:00
Tetrakern
d4d6ac51bd Fix typo 2024-11-05 23:09:18 +01:00
Tetrakern
46cdb988a6 Catch possible null access 2024-11-05 21:12:58 +01:00
Tetrakern
d6ca9bd79b Use SQL to get chapter relationship metabox data 2024-11-05 21:10:00 +01:00
Tetrakern
1c9b1a8134 Add $icon param to fictioneer_get_icon_field()
Allows to pre-retrieve and use an icon.
2024-11-05 20:53:19 +01:00
Tetrakern
819ab69363 Fix SQL error for token meta box 2024-11-04 21:41:26 +01:00
Tetrakern
2f72af4640 Make sure IDs are integers for chapter parent setter 2024-11-04 21:35:30 +01:00
Tetrakern
d1ae66cb23 Make fcn_chapter post type hierarchical 2024-11-04 21:34:35 +01:00
Tetrakern
0ba5dd55bc Fix cropping of header image 2024-11-04 09:57:13 +01:00
Tetrakern
cb09b173df Use table name from $wpdb when changing SELECT clause
Welp.
2024-11-03 15:14:43 +01:00
Tetrakern
8f69169e6d Restore excluded chapter post fields after query
This is to prevent errors if something tries to access the excluded fields, which would be null otherwise.
2024-11-03 13:48:46 +01:00
Tetrakern
7f3371f541 Modify SELECT clause of chapter list post query
From ~0.0945 ms to ~0.0017 ms.
2024-11-02 13:03:56 +01:00
Tetrakern
b7f181f087 Improve guard clause for shortcode transient check 2024-10-31 14:05:32 +01:00
Tetrakern
ced26e78ea Fix "doing it wrong" error 2024-10-31 13:13:01 +01:00
Tetrakern
e6a6d1e9a5 Make query LIKE value more precise
Likely unnecessary.
2024-10-31 11:24:21 +01:00
Tetrakern
0986c06002 Fix shortcode Transients being saved in admin
This could cause problems, like using the wrong base URL for the pagination.
2024-10-31 09:20:59 +01:00
Tetrakern
f14abaa298 Add filter to story page cover HTML 2024-10-30 20:56:06 +01:00
Tetrakern
83ba5069fa Add filter to profile support link fields 2024-10-30 12:07:50 +01:00
Tetrakern
9f6861b1c6 Fix use of pre_get_posts hook to only use add_action()
add_filter() did work but was technically wrong.
2024-10-30 10:34:32 +01:00
Tetrakern
fda42d7e0f Update co-authored IDs helper name, add filter 2024-10-30 08:46:08 +01:00
Tetrakern
a10011d82f Allow co-authors to crosspost chapters 2024-10-29 16:32:32 +01:00
Tetrakern
53280392b4 Save co-author IDs as strings
This is better for queries and makes otherwise no difference.
2024-10-29 00:48:29 +01:00
Tetrakern
7f7a1c7134 Add more name args to queries 2024-10-28 18:29:37 +01:00
Tetrakern
4fe4a45e5a Optimize ePUB chapter query 2024-10-28 18:25:03 +01:00
Tetrakern
2c49e9e502 Optimize purge all schemas action 2024-10-28 12:44:38 +01:00
Tetrakern
60c69fd0f6 Optimize collection statistics
Up to 4 times faster in test runs.
2024-10-28 10:48:26 +01:00
Tetrakern
65f0227e21 Temper fictioneer_see_some_evil()
Still best function name.
2024-10-28 10:00:40 +01:00
Tetrakern
1b60ebbf3b Optimize saving featured posts array 2024-10-28 01:42:53 +01:00
Tetrakern
6fa4084177 Optimize token track meta fields 2024-10-27 23:12:31 +01:00
Tetrakern
7c6783f52f Optimize blog story IDs validation 2024-10-27 22:44:09 +01:00
Tetrakern
5f99927441 Use SQL to filter out invalid post IDs when collection is saved 2024-10-27 21:03:46 +01:00
Tetrakern
ff390364c9 Use SQL to build chapter story selection
And fix the status note as well.
2024-10-27 19:25:15 +01:00
Tetrakern
2d55285b8c Split off fictioneer_sanitize_safe_title() 2024-10-27 18:57:16 +01:00
Tetrakern
624abe5220 Use SQL to filter out invalid page IDs when story is saved 2024-10-27 16:11:09 +01:00
Tetrakern
9dc916db79 Add development helper to measure performance in microseconds 2024-10-27 16:03:44 +01:00
Tetrakern
f387230e1c Use SQL to check for valid new chapters in story 2024-10-27 14:55:07 +01:00
Tetrakern
d1894d3459 Use SQL to filter out invalid chapter IDs when story is saved 2024-10-27 14:13:49 +01:00
Tetrakern
bae3ca8bb9 Clean up code 2024-10-27 13:03:27 +01:00
Tetrakern
f19bdaa435 Add missing query param
Well, probably missing or irrelevant.
2024-10-27 01:08:23 +02:00
Tetrakern
0ef03c57e5 Remove test code
Welp
2024-10-26 23:47:59 +02:00
Tetrakern
d77f3e18aa Add crosspost user capability 2024-10-26 22:46:30 +02:00
Tetrakern
a7051df9f1 Add fictioneer_set_chapter_story_parent() 2024-10-26 20:46:43 +02:00
Tetrakern
713cf7db06 Also set story as post parent for chapters
For the future.
2024-10-26 20:05:08 +02:00
Tetrakern
ac6a2422de Clarify chapter story meta description 2024-10-26 19:53:34 +02:00
Tetrakern
e5a5c24fce Fix doc comment 2024-10-26 08:23:18 +02:00
Tetrakern
f80ecac9bb Fix outdated meta field description 2024-10-26 08:22:18 +02:00
Tetrakern
4b41dc825c Add helper to get chapter story ID
This would be useful if I ever decide to use the parent ID field instead if meta.
2024-10-26 02:03:23 +02:00