mizkirsten
Forum Replies Created
-
For anyone in the future who might read this, here was the problem:
I had used'type' => 'array',
in the wrong place in a call toregister_post_meta()
.
I had placed it outside of the args and had a duplicate of it within the args.Like so
register_post_meta(
'post_type',
'meta_key_name',
'type' => 'array,
array (
'show_in_rest' => array(
'schema' => array(
'items' => array(
'type' => 'array,
)
)
)
)
)When I removed it from outside of args (the first instance of it) the warnings stopped.
- This reply was modified 1 year ago by mizkirsten.
- This reply was modified 1 year ago by mizkirsten.
OK, thanks. I appreciate you taking a look ??
If you’re game, I’d be grateful for any thoughts on how my code is conflicting with Better Messages. I’ve posted the stack trace here:
https://gist.github.com/MsPseudolus/12e5a9ae98de7f901aee1a542cf6466c
I’m not able to see here what the problem is. (Everything that’s mine is using the term localapp or local-app.)
I only get these warnings when both plugins are activated.Oof! You’re right ?? It was, of course, my own plugin. Sorry for the confusion!
Hi! Thanks for the quick reply ??
When I modify the
site_interval
value in inc/options of the plugin, from10
to10000000
, the warning fires only once on page load.When I reset back to
10
the repeated warnings return every 10 seconds.So it does seem that whatever uses the value of
site_interval
is the cause of the warnings.- This reply was modified 1 year ago by mizkirsten.
Rolling back to the previous version of blocks.build.js fixes it.