1184 Commits

Author SHA1 Message Date
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
Tetrakern
54b28ea445 Update DEVELOPMENT.md 2023-08-16 17:53:22 +02:00
Tetrakern
694463ed0f Change some hooks 2023-08-16 17:52:42 +02:00
Tetrakern
3a4ef9884d Improve and add new discord webhooks 2023-08-16 17:19:41 +02:00
Tetrakern
6f3dae5adc Update admin input background color 2023-08-16 16:59:58 +02:00
Tetrakern
fe4f64b331 Update INSTALLATION.md 2023-08-16 12:56:37 +02:00
Tetrakern
5905cf2115 Update SEO box style 2023-08-16 12:45:55 +02:00
Tetrakern
8f55e6d671 Update README.md 2023-08-15 23:10:01 +02:00
Tetrakern
21b0fd4fe1 Update settings_roles_preview.jpg 2023-08-15 22:17:34 +02:00
Tetrakern
2deb2de5da Update INSTALLATION.md 2023-08-15 22:14:49 +02:00
Tetrakern
b52fff7997 Allow story pages per default 2023-08-15 20:21:35 +02:00
Tetrakern
8f1386ab8c Add and apply fcn_story_pages cap 2023-08-15 20:19:36 +02:00
Tetrakern
e54784dff5 Hide story pages if role lacks caps 2023-08-15 20:16:15 +02:00
Tetrakern
90116227bd Remove overkill restrictions
This literally just sorted blocks into categories.
2023-08-15 19:59:03 +02:00
Tetrakern
9466b9d444 Further restrict media access 2023-08-15 19:03:43 +02:00
Tetrakern
5e746bcc2d Make sure widgets are dead 2023-08-15 18:24:14 +02:00
Tetrakern
832e05ec07 Remove block patterns 2023-08-15 18:14:24 +02:00
Tetrakern
2645b09ea3 Extra removal of editor panels 2023-08-15 17:57:34 +02:00
Tetrakern
e8894b5db7 Fix editor script 2023-08-15 17:33:18 +02:00
Tetrakern
a9b1538c61 Improve fcn_all_blocks 2023-08-15 17:20:40 +02:00
Tetrakern
2a85fdd645 Fix fcn_all_blocks
lol
2023-08-15 16:20:14 +02:00
Tetrakern
e1df9b235d Add and apply fcn_all_blocks 2023-08-15 16:18:42 +02:00
Tetrakern
ca5fe764dc Remove ping-/trackback checkbox 2023-08-15 13:31:03 +02:00
Tetrakern
144db410b0 Update DEVELOPMENT.md 2023-08-15 12:45:35 +02:00