dphiffer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WP 5.7 editor sometimes has mysterious “gray bar”Ok, I have solved the one remaining mystery on this. It turns out we have a second WordPress installation on our nginx container that I did not know was there. I assume this was done to optimize for serving static files. The downside is that I didn’t know upgrading one WordPress install would only make my local environment half-upgraded!
Thanks for your help, @macmanx.
Forum: Fixing WordPress
In reply to: WP 5.7 editor sometimes has mysterious “gray bar”Aha, I figured out the customization that is making the gray bar appear. Something I did before to work around some editor CSS that had been breaking our blocks.
add_filter( 'block_editor_settings', function( $editor_settings ) { // Remove the default editor styles array_shift( $editor_settings['styles'] ); return $editor_settings; });But I am still wondering why it doesn’t happen on my local environment.
- This reply was modified 5 years, 1 month ago by dphiffer.
Forum: Fixing WordPress
In reply to: WP 5.7 editor sometimes has mysterious “gray bar”Thanks James! I switched to the twentytwentyone theme, which made the mystery bar go away, so it must be due to one of my editor customizations.
I tried disabling all the CSS and JS I’m adding onto the editor page and that didn’t fix it. We do have hooks for
admin_init,get_user_option_admin_color,admin_enqueue_scripts,admin_print_styles-post.phpso there’s a lot of ways this might be breaking. Disabling them all did not make the gray bar disappear, sadly.The Health Check feature does not seem to like our style of running WordPress: headless, with the default REST API endpoints disabled, not accessible to the open internet, and behind an SSO reverse-proxy. So there are some issues reported, but none of them seem actionable without reconsidering some fundamental architecture decisions.
Then again, I suspect that whatever makes my local environment different from staging is somehow endemic to the way we are running things. Or perhaps the editor is trying to imitate the look/feel of a front-end that doesn’t actually run in WordPress.
I’m still baffled about the DOM being different in one than the other. I wish there were some way to ask
wp.editorfor a version number in the JS console.Forum: Fixing WordPress
In reply to: Copy/paste breaks on Microsoft Word commentsThanks again, for reference here is an issue I just filed:
https://github.com/WordPress/gutenberg/issues/16936Forum: Fixing WordPress
In reply to: Copy/paste breaks on Microsoft Word commentsThanks for your quick reply, @macmanx. I would add to this report that the issue only applies to the Gutenberg editor, sites that have the Classic Editor plugin enabled are able to copy/paste commented-on text, in both the Visual and Text tabs.
Forum: Plugins
In reply to: [JSON API] Please don't let this AWESOME plugin die!Marking resolved 😉
Forum: Plugins
In reply to: [JSON API] Get posts with any post statusGonna mark this as resolved.
Forum: Plugins
In reply to: [JSON API] Request by a specific custom fieldsGonna mark this as resolved.
Forum: Plugins
In reply to: [JSON API] Method get_post redirects to post's pageAh, I figured it out! The
idthing was a mistake, I think it was just ignoring that and giving you back the most recent post.I found a way to avoid the redirect when the
pargument is present. Should be fixed in the next release.Forum: Plugins
In reply to: [JSON API] Request by a specific custom fieldsThis is an impressive response, and in multiple languages no less! Thanks cristophergv!
Forum: Plugins
In reply to: [JSON API] Get posts with any post statusYeah, I would suggest avoiding modifying the plugin files. I’ve just released version 1.1.3 that includes a new filter
json_api_query_argsthat will let you override the post_status setting.Forum: Plugins
In reply to: [JSON API] Method get_post redirects to post's pageNot sure if my last reply will make it through the spam filters, but try converting the
pargument toidand adding one extra one:count=1.Forum: Plugins
In reply to: [JSON API] Method get_post redirects to post's pageAh, yeah I think the
?p=123argument triggers a built-in redirection from WordPress. I should look into disabling that, but in the meantime here are some workarounds:http://es-factory.nl/blog/api/get_posts/?id=9540&count=1
http://bmwblog.ro/api/get_posts/?id=73792&count=1
http://www.nakko.com/api/get_posts/?id=2052&count=1Forum: Plugins
In reply to: [JSON API] Please don't let this AWESOME plugin die!Yeah, I think that filter option was already on my list of things to release.
Forum: Plugins
In reply to: [JSON API] Please don't let this AWESOME plugin die!Hello, I’m still updating the plugin. I’m just trying to work out what should go into the next release.