[wp-trac] [WordPress Trac] #57393: CodeMirror Features Disabled by wp_enqueue_code_editor Activation Conditions

WordPress Trac noreply at wordpress.org
Tue Jan 31 15:30:09 UTC 2023


#57393: CodeMirror Features Disabled by wp_enqueue_code_editor Activation
Conditions
--------------------------------+------------------------------
 Reporter:  mjdewitt            |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:  6.1.1
 Severity:  normal              |  Resolution:
 Keywords:  reporter-feedback   |     Focuses:
--------------------------------+------------------------------

Comment (by mjdewitt):

 @tobiaBg

 This is one of the pitfalls of negatively phrased questions and the naming
 of the variable associated with it.

 Disable syntax highlighting? => syntax_highlighting <!--this is how it is
 -->

 Vs
 (rewrite the question in a positive sense)
 Enable syntax highlighting? => syntax_highlighting <!-- I think this is
 better -->
 or
 (rename the variable to match the question)
 Disable syntax highlighting? => syntax_highlighting_disabled <!--the
 negative nature of the variable

 Mixing negative questions and positive variables leads to confusion.

 Mike

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


More information about the wp-trac mailing list