[wp-trac] [WordPress Trac] #45037: Improve the WordPress Post editing experience

WordPress Trac noreply at wordpress.org
Tue Oct 23 11:25:27 UTC 2018


#45037: Improve the WordPress Post editing experience
-------------------------------------------------+-------------------------
 Reporter:  jorbin                               |       Owner:  pento
     Type:  task (blessed)                       |      Status:  assigned
 Priority:  highest omg bbq                      |   Milestone:  5.0
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  early needs-unit-tests has-patch     |     Focuses:
  needs-testing                                  |
-------------------------------------------------+-------------------------

Comment (by birgire):

 @pento great, thank you for the update.

 I tested the latest patch, but I get


 {{{
 The editor has encountered an unexpected error.

 }}}

 It shows three buttons:

 {{{
 Attempt Recovery
 Copy Post Text
 Copy Error

 }}}

 The buttons didn't give any direct text feedback (a possible future
 ticket?) when pressing on them.

 The "Attempt Recovery" button didn't solved the issue though.

 The "Copy Error" button did copy to the clipboard the following error:

 {{{
 TypeError: Cannot read property 'length' of undefined
     at i (http://wp.test/wp-
 includes/js/dist/date.min.js?ver=5.0-alpha-20181023.101317:1:3777)
     at d (http://wp.test/wp-
 includes/js/dist/date.min.js?ver=5.0-alpha-20181023.101317:1:4419)
     at http://wp.test/wp-
 includes/js/dist/editor.min.js?ver=5.0-alpha-20181023.101317:55:210644
     at Ug (http://wp.test/wp-includes/js/dist/vendor/react-
 dom.min.js?ver=5.0-alpha-20181023.101317:90:242)
     at Vg (http://wp.test/wp-includes/js/dist/vendor/react-
 dom.min.js?ver=5.0-alpha-20181023.101317:92:379)
     at Kf (http://wp.test/wp-includes/js/dist/vendor/react-
 dom.min.js?ver=5.0-alpha-20181023.101317:118:136)
     at Lf (http://wp.test/wp-includes/js/dist/vendor/react-
 dom.min.js?ver=5.0-alpha-20181023.101317:118:472)
     at jc (http://wp.test/wp-includes/js/dist/vendor/react-
 dom.min.js?ver=5.0-alpha-20181023.101317:127:342)
     at aa (http://wp.test/wp-includes/js/dist/vendor/react-
 dom.min.js?ver=5.0-alpha-20181023.101317:126:505)
     at ta (http://wp.test/wp-includes/js/dist/vendor/react-
 dom.min.js?ver=5.0-alpha-20181023.101317:124:298)

 }}}

 and strangely the "Copy Post Text" button did also copy the error but not
 the post text.

 I also noticed with an earlier patch that the date-picker seemed to be
 missing some CSS?

 But I suspect these errors might just be related to my own install, but I
 post them here just in case  :-)

 It seems that Gutenberg will make this call:

 {{{
 file_get_contents( 'https://fonts.googleapis.com/css?family=
 Libre+Franklin%3A300%2C300i%2C400%2C400i%2C600%2C600i%2C800%2C800i&subset=latin
 %2Clatin-ext' )

 }}}

 I wonder if site owners are informed about this external call?

 This might also be blocked, if the {{{allow_url_fopen}}} support is turned
 off. The check {{{true == ini_get( 'allow_url_fopen' )}}} comes also to
 mind.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45037#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list