1207 Commits

Author SHA1 Message Date
Tetrakern
e1c1763028 Update INSTALLATION.md 2023-08-18 20:55:58 +02:00
Tetrakern
dcfb16251e Update INSTALLATION.md 2023-08-18 20:54:44 +02:00
Tetrakern
506e76c65b Update INSTALLATION.md 2023-08-18 20:37:38 +02:00
Tetrakern
4241e89ba7 Role init does no longer remove caps
Aside restrictions from admins.
2023-08-18 20:09:19 +02:00
Tetrakern
f138c6edbe Update role init condition 2023-08-18 19:36:12 +02:00
Tetrakern
56e1ec27fc Update see_some_evil 2023-08-18 18:15:15 +02:00
Tetrakern
9e12a572a7 Remove unnecessary utility functions 2023-08-18 18:14:22 +02:00
Tetrakern
8db3222141 Add and apply fcn_edit_date cap 2023-08-18 16:49:14 +02:00
Tetrakern
f78860914f Fic and document fictioneer_get_user_caps 2023-08-18 16:38:45 +02:00
Tetrakern
722e2861ff Fix edit_permalink cap 2023-08-18 16:38:19 +02:00
Tetrakern
2475e29655 Delete data collection meta on purge
Same as setting it to false as far as the functions are concerned, but might save some database size.
2023-08-18 13:47:59 +02:00
Tetrakern
7f9e658311 Optimize comment counting for stories
I hate everything.
2023-08-18 13:35:46 +02:00
Tetrakern
874f022297 Also check title for 3v1l 2023-08-18 12:05:51 +02:00
Tetrakern
f72b711a39 You know what, f*ck REST! 2023-08-18 10:17:18 +02:00
Tetrakern
8dda2499c4 Add utility to get all the user's caps
Of all roles -- which should be one tho.
2023-08-18 10:05:12 +02:00
Tetrakern
64494e1bd5 Multi-save guard surrenders
There is no way to block the double fire with the block editor AND not block normal WP_POST requests. Going to have to live with twice the database hits on every save.
2023-08-18 10:04:15 +02:00
Tetrakern
b3279359fb Fix auto appending of chapters (again) 2023-08-18 09:23:06 +02:00
Tetrakern
0ad0900f73 Fix undefined array key warning 2023-08-18 02:08:30 +02:00
Tetrakern
7e02a9aafc Remove undesired sub-menus 2023-08-18 00:36:10 +02:00
Tetrakern
a966dd8e54 Style for unavailable cards 2023-08-17 22:38:38 +02:00
Tetrakern
fdbab313df Improve chapter cache purging 2023-08-17 22:06:10 +02:00
Tetrakern
feff5d36b8 Add check for story existence 2023-08-17 21:55:33 +02:00
Tetrakern
baa3aa9963 Update latest chapter shortcode
No accounts for unpublished parent stories. Somewhat.
2023-08-17 21:46:17 +02:00
Tetrakern
413e87a61e Properly gate unpublished posts
And associated chapters. I hope this is the last iteration.
2023-08-17 21:30:42 +02:00
Tetrakern
3377ed7c55 Restrict chapters of unpublished stories 2023-08-17 19:33:29 +02:00
Tetrakern
b4917ec34e Improve unpublished post access gate 2023-08-17 18:55:36 +02:00
Tetrakern
43b2a8f9c7 Move some code around 2023-08-17 18:27:34 +02:00
Tetrakern
7785a31e1b Fix missing post ID 2023-08-17 18:14:50 +02:00
Tetrakern
ef00a51301 Account for unpublished story parent or chapter 2023-08-17 16:46:32 +02:00
Tetrakern
5deeb29991 Hide invisible posts in public caches 2023-08-17 16:38:22 +02:00
Tetrakern
39a9f5ce10 Append Draft: to title of drafts 2023-08-17 16:02:07 +02:00
Tetrakern
92b1ea823b Add utility function to redirect to 404 2023-08-17 16:01:36 +02:00
Tetrakern
85a48e633c Monitor function for malicious attempts
Just to catch some script kiddies, nothing that would stop an actual hacker.
2023-08-17 15:50:16 +02:00
Tetrakern
abc271b292 add_action to add_filter 2023-08-17 15:34:34 +02:00
Tetrakern
33f5ace27f Rename function 2023-08-17 10:40:00 +02:00
Tetrakern
96c69d1f7c Improve fictioneer_multi_save_guard
Should now only fire the first trigger with the correct parameters (updated, etc.) depending on whether the block editor is used or not.
2023-08-17 10:39:00 +02:00
Tetrakern
0e3a3bc20c Remove extra wp_update_post
fictioneer_purge_post_cache() already calls clean_post_cache() and that should be enough.
2023-08-17 10:19:31 +02:00
Tetrakern
a5e0bd8b4f Fix and improve capability hooks 2023-08-17 10:16:35 +02:00
Tetrakern
f04bdc4422 Move function 2023-08-17 03:34:24 +02:00
Tetrakern
a55c4e1ce5 Rename function 2023-08-17 03:20:27 +02:00
Tetrakern
d1f460d61b Safety checks for capabilities
Make sure this does not hit unintended posts or queries!
2023-08-17 03:01:32 +02:00
Tetrakern
dca78b79cb Add dev utility
Send anything to Discord! Really useful with the damn block editor.
2023-08-17 02:21:37 +02:00
Tetrakern
ae42949a44 Fix missing sticky metafield
For real this time!
2023-08-17 02:20:55 +02:00
Tetrakern
a7f6f5c073 Fix missing meta field
Without the field, the story will not be queried. And updating the meta query is expensive.
2023-08-17 02:11:37 +02:00
Tetrakern
018661f8f4 Restore FICTIONEER_SHORTCODE_TRANSIENT_EXPIRATION
It's late.
2023-08-17 01:32:30 +02:00
Tetrakern
299db867e8 Fix overzealous post__in filtering
I hate this.
2023-08-17 01:32:02 +02:00
Tetrakern
bed9852de1 New query safety function for empty post__in
This was causing untold issues...
2023-08-17 01:10:00 +02:00
Tetrakern
8ced61b98f Fix "new" note on story cards
Holy shit...
2023-08-17 00:40:44 +02:00
Tetrakern
d06625564c Fix caps for templates and shortcodes
Those had previously affected every single associated page lol
2023-08-17 00:25:42 +02:00
Tetrakern
2ffe6440da Prevent user-level cache inteference 2023-08-17 00:24:58 +02:00