Closed cfoellmann closed 9 years ago
This seems to be a WP core issue. It looks like that the function that outputs stuff for the fullscreen mode expects a $post to be defined (returned by get_post), but when using the editor in widgets page, no $post is defined.
The fix is quite easy: change the wp-includes/class-wp-editor.php:1253
from
<?php if ( $post->post_status == 'publish' ) _e('Updated.'); else _e('Saved.'); ?>
to
<?php if ( $post && $post->post_status == 'publish' ) _e('Updated.'); else _e('Saved.'); ?>
I suppose this should be reported to WP core bug tracker. What do you think?
P.s. Thanks for pointing me to Query Monitor plugin. I usually was debugging with Debug Bar + Debug Bar Extender, but at first sight this one looks better.
It is better ;-) Open an issue on trac when you got the time. Add a path for core if you have a solution! Try searching a bit if it is already reported. I reported a few duplicates in the past :-(
Opened ticket.
This issue was fixed in WordPress core, so it can be closed.
Following PHP notice (VVV; php 5.5.x):
@marcochiesi you should have a look at https://wordpress.org/plugins/query-monitor/