Tetrakern
c57950a65d
Account for story post comments in count
...
You cannot normally comment on stories, only chapters, but in case someone changes that for likely no good reason, these comments are now also counted.
2024-12-18 00:41:18 +01:00
Tetrakern
f5e0188c1f
Add Stimulus ( #65 )
2024-12-06 17:38:32 +01:00
Tetrakern
7aec3c55af
Store story comment count in post row
...
Primarily for query purposes.
2024-11-10 14:46:36 +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
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
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
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
60c69fd0f6
Optimize collection statistics
...
Up to 4 times faster in test runs.
2024-10-28 10:48:26 +01:00
Tetrakern
bae3ca8bb9
Clean up code
2024-10-27 13:03:27 +01: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
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
Tetrakern
f10c80c201
Remove broken Transient cache for large query results
...
This did not consider the meta cache and caused potentially hundreds of additional queries instead of preventing them. Welp.
2024-10-17 16:06:13 +02:00
Tetrakern
07cdac120a
Clean up error messages part 3
2024-10-13 00:36:43 +02:00
Tetrakern
ff47e6712c
Move log functions to utility
2024-10-12 20:23:13 +02:00
Tetrakern
a191824310
Make Transient purge compatible with external object caches
2024-10-12 20:18:25 +02:00
Tetrakern
3cee416e81
Fix typo
2024-10-12 11:17:02 +02:00
Tetrakern
c490c8abaa
Move chapter grouping into helper function
2024-10-12 11:13:46 +02:00
Tetrakern
f9c1779a69
Update doc comment
2024-10-11 13:47:23 +02:00
Tetrakern
e0270034d3
Fix utility function definition order
2024-10-11 13:44:59 +02:00
Tetrakern
c82a8a8f28
Fix typo
2024-10-11 12:12:49 +02:00
Tetrakern
394c5554d8
Update word counting and add recounting tool
2024-10-10 00:11:24 +02:00
Tetrakern
2770ee7812
Add fictioneer_filter_get_story_data_sql filter
2024-10-08 19:45:53 +02:00
Tetrakern
c73e64eb5e
Boost performance of story data query (x15)
2024-10-08 12:40:29 +02:00
Tetrakern
72b7e8d3a9
Move Splide functions to template helpers
2024-10-07 13:34:23 +02:00
Tetrakern
d36465ace5
Add static cache to Splide breakpoints functions
2024-10-07 13:16:46 +02:00
Tetrakern
c88e122d99
Add filters to Splide placeholder styles
2024-10-07 12:03:10 +02:00
Tetrakern
0ad5bdd45a
Move CSS minify function to utilities
2024-10-07 11:04:25 +02:00
Tetrakern
347023ad0c
Generalized selector in Splide placeholder styles
2024-10-07 02:33:03 +02:00
Tetrakern
4bbb031286
Fix Splide placeholder for showcase
2024-10-07 02:27:57 +02:00
Tetrakern
8bd7342efd
Improve Splide slider placeholder styles
2024-10-07 02:08:40 +02:00
Tetrakern
cc9e62d8b5
Refine handling of fictioneer_chapters_added meta
...
This controls the order of stories in the Latest Updates shortcodes and Stories template. Up to this point, it had been updated a bit too often and could cause confusion in the order of stories.
2024-10-06 15:54:22 +02:00
Tetrakern
155b9b9d78
Add fictioneer_is_local_environment()
...
This is purely for development purposes.
2024-10-05 16:11:05 +02:00
Tetrakern
a19303e5a1
Add fictioneer_get_post_type_label()
2024-10-04 16:28:08 +02:00
Tetrakern
d9fdc094a3
Add utility to get translated post status label
2024-10-01 12:07:27 +02:00
Tetrakern
c807d87939
Merge pull request #52 from iniznet/refactor/fictioneer_verify_unpublish_access
...
Allow overriding the fictioneer_verify_unpublish_access value
2024-09-26 11:57:01 +02:00
Tetrakern
0d58606498
Cosmetic changes and typos
2024-09-25 22:29:18 +02:00
iniznet
7256e0be5c
Refactor indexed chapter data to allow for custom statuses via filter hook
2024-09-26 01:59:32 +07:00
iniznet
53995d3d42
Refactor chapter appending logic to allow for custom statuses
2024-09-26 00:47:39 +07:00
iniznet
5c50875744
Refactor fictioneer_verify_unpublish_access to allow customization
2024-09-25 22:00:32 +07:00
Tetrakern
c3e51fcf18
Add no-* rel attributes to anchor links in comments
...
Just in case someone misuses them.
2024-09-20 14:04:37 +02:00
Tetrakern
fe61cfb194
Update BBCode conversion to account for leading/trailing whitespaces
2024-09-20 14:02:36 +02:00
Tetrakern
9a0cda8f08
Fix some code formatting
2024-09-19 02:24:49 +02:00
Tetrakern
899f730eac
Made fictioneer_cleanup_discord_meta() generic
2024-09-17 11:17:29 +02:00
Tetrakern
a007d20f76
Refactor Discord post trigger handling (again)
...
I didn't like storing all these IDs in an array after all, because I know some cases where this would end up with tens of thousands. New plan: check for both the meta and time since publishing, but delete the meta after a day. The post will then be too old to trigger.
2024-09-16 18:28:49 +02:00
Tetrakern
ffaf30e10c
Make type and status in comment Discord message translatable
2024-09-10 12:36:29 +02:00