Tetrakern
f7e25e5008
Change constant for post__(not)_in arguments
2024-01-29 00:00:44 +01:00
Tetrakern
7d8de5260c
Move function to append meta fields into utility
2024-01-28 15:31:16 +01:00
Tetrakern
ec5e40e7e1
Fix typo
2024-01-28 00:55:23 +01:00
Tetrakern
995fa50b11
Fix tab sizes in files
...
How did this even happen?
2024-01-27 21:00:00 +01:00
Tetrakern
5f8cf18064
Simplify author statistics meta cache
...
It's now refreshed after one hour, which is perfectly reasonable.
2024-01-27 00:49:01 +01:00
Tetrakern
844b4e0ca0
Rename argument for more clarity
2024-01-27 00:30:40 +01:00
Tetrakern
2a0d87d65f
Fix story comments broken by last commit
2024-01-26 23:52:16 +01:00
Tetrakern
2065c72815
Fix story data meta cache
2024-01-26 23:30:58 +01:00
Tetrakern
b1d2030621
Cache collection statistics
2024-01-26 23:01:20 +01:00
Tetrakern
365496c807
Remove problematic commit message
...
Revert revert!
2024-01-26 17:47:24 +01:00
Tetrakern
e00787589d
Revert "Unify since version number format"
...
This reverts commit 8c4b44e41db8454af65ce4a909e0cb12db8828f8.
2024-01-26 17:45:53 +01:00
Tetrakern
89855cca3b
Update comment in function
2024-01-26 16:23:48 +01:00
Tetrakern
999f30f82c
Improve function to get story chapter posts
...
Added a switch for smaller ID arrays (< 50) to use post__in instead of a meta query, which should be faster. 50 is a pretty save value... I have been told.
2024-01-26 16:22:07 +01:00
Tetrakern
8c4b44e41d
Unify @since version number format
...
Yes, it bothered me.
2024-01-26 15:51:11 +01:00
Tetrakern
0bd8144e0c
Add no_found_rows to query args
...
Collection statistics do no longer need that.
2024-01-26 15:42:06 +01:00
Tetrakern
a3dbcccc73
Add utility function for chapter list posts
2024-01-26 15:00:53 +01:00
Tetrakern
f85840702d
Add utility function for collection statistics
2024-01-26 14:40:56 +01:00
Tetrakern
3b67407678
Rename function to fictioneer_get_story_chapter_ids
...
Because this is what it actually returns.
2024-01-26 00:24:31 +01:00
Tetrakern
475af0f8fb
Add utility function to safely truncate strings
...
This had a small chance to fail or return invalid HTML.
2024-01-19 14:42:19 +01:00
Tetrakern
a2ab9585b6
Fix AJAX auth not always working
2024-01-16 08:00:17 +01:00
Tetrakern
13ed788c89
Increase and add constant for old post time threshold
2024-01-10 13:27:16 +01:00
Tetrakern
08cdd52433
Fix comment form showing despite comments being off
2024-01-09 18:44:37 +01:00
Tetrakern
59e10fab54
Tool action to append chapters
2024-01-03 08:36:42 +01:00
Tetrakern
c7235461be
Update and move function to append chapters
...
New param lets you skip some guard clauses and the function is now in _utilities for global availability.
2023-12-31 04:03:06 +01:00
Tetrakern
304f147e8e
Restore saving of empty setting checkboxes
...
This actually caused many additional DB queries since they were no longer auto-loaded if they did not exist. Far worse than saving the few rows in the DB is worth.
2023-12-02 12:41:52 +01:00
Tetrakern
fb92db30ee
Fix word count in collections
2023-11-30 17:12:48 +01:00
Tetrakern
36aff1f54a
Add fictioneer_get_word_count helper
2023-11-30 17:10:19 +01:00
Tetrakern
082337c53c
Add fictioneer_get_story_chapters helper
2023-11-30 16:21:16 +01:00
Tetrakern
b65e8ccea1
Replace fictioneer_get_field with get_post_meta
...
This wrapper made sense at some point in the past, now it was just unnecessary overhead.
2023-11-30 16:03:53 +01:00
Tetrakern
e0176eac59
Use fictioneer_get_field everwhere
...
I might actually remove it later on because it does not safe space anyway, but at least it is consistent for now.
2023-11-30 10:58:45 +01:00
Tetrakern
25726ab3b0
Optimize key/value replacement function
2023-11-30 02:37:05 +01:00
Tetrakern
b98d45404a
Add type casting to word count operations
2023-11-27 22:41:43 +01:00
Tetrakern
8046aa9351
Remove internal ACF plugin
2023-11-20 14:16:05 +01:00
Tetrakern
60392a4346
Clarify query args
...
This should be default, but better be safe.
2023-11-15 14:40:28 +01:00
Tetrakern
6651b7c7b1
Improve author statistics queries
2023-11-15 10:32:05 +01:00
Tetrakern
01ff03fe3d
Add description to story word count
...
Eh, why not if that makes some people happy?
2023-11-14 17:13:23 +01:00
Tetrakern
dc424099fa
Improve total word count query
2023-11-14 10:07:15 +01:00
Tetrakern
635b73abc8
Optimize author statistics query args
2023-11-12 15:11:56 +01:00
Tetrakern
bd7ae5d45d
Fx variable names
2023-11-12 15:09:43 +01:00
Tetrakern
a838737e7f
Improve query performance of author statistics
2023-11-12 15:09:03 +01:00
Tetrakern
5803437442
Fix slow main RSS feed query
2023-11-12 12:42:25 +01:00
Tetrakern
b4f8421e93
Improve DB optimizer and boolean settings
2023-11-10 22:22:33 +01:00
Tetrakern
24ffffbbc0
Add string utility to return '%s'
2023-11-08 19:59:14 +01:00
Tetrakern
c564b89214
Add utility to unset array items by value
2023-11-08 13:41:15 +01:00
Tetrakern
0e7269bac0
Fix AJAX comments when commenting disabled
2023-10-29 21:27:33 +01:00
Tetrakern
7041a5cefb
Improve check whether an URL exists
2023-10-24 01:21:10 +02:00
Tetrakern
9105f74641
Fix user role checks
2023-10-06 02:44:44 +02:00
Tetrakern
a8f7a80afa
Add tools to append missing meta fields
2023-10-04 03:04:45 +02:00
Tetrakern
80d5308e0d
Allow list for falsy meta fields
2023-10-03 23:42:37 +02:00
Tetrakern
50c7ef9129
Let sanitize checkbox always return 0 or 1
2023-10-03 23:42:14 +02:00