Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#45634 closed defect (bug) (fixed)

Convert references to 'classic editor' and 'block editor' when referring to the interface and not the plugin

Reported by: garrett-eclipse's profile garrett-eclipse Owned by: garrett-eclipse's profile garrett-eclipse
Milestone: 5.3 Priority: normal
Severity: normal Version: 5.0
Component: Text Changes Keywords: has-patch commit
Focuses: docs, coding-standards Cc:

Description (last modified by garrett-eclipse)

Hello,

Just from a consistency standpoint was running through and found several lowercase instances of terms ('classic editor' and 'block editor') that should be proper nouns.

Instances of 'classic editor';
https://build.trac.wordpress.org/browser/branches/5.0/wp-admin/includes/post.php?marks=2227#L2227
https://build.trac.wordpress.org/browser/branches/5.0/wp-admin/includes/template.php?marks=1049#L1049

Instances of 'block editor';
https://build.trac.wordpress.org/browser/branches/5.0/wp-admin/includes/post.php?marks=2227#L2227
*Note: this is the same one mentioned in the 'classic editor' list above.

There may be some instances in other areas of the code (comments, readme, etc) as the above were taken from translation.wp.org so are i18n strings.

Cheers
P.S. I opened a similar ticket on Gutenberg and it's started a discussion about the convention so defer to that decision.
https://github.com/WordPress/gutenberg/pull/12856

Attachments (5)

45634.patch (1.8 KB) - added by faisal03 6 years ago.
45634-Block-Editor.patch (8.0 KB) - added by faisal03 6 years ago.
45634.diff (4.4 KB) - added by garrett-eclipse 6 years ago.
Converting 'Block Editor' and 'Classic Editor', where not in reference to the plugin, to lowercase.
45634.2.diff (2.3 KB) - added by garrett-eclipse 6 years ago.
Refreshed so it applies cleanly
45634.3.diff (2.3 KB) - added by garrett-eclipse 5 years ago.
Refresh, no code change, just addressing hunk offset.

Download all attachments as: .zip

Change History (18)

#1 @garrett-eclipse
6 years ago

  • Description modified (diff)

#2 @garrett-eclipse
6 years ago

  • Description modified (diff)

#3 @garrett-eclipse
6 years ago

  • Description modified (diff)

This ticket was mentioned in Slack in #core by subratasarkar. View the logs.


6 years ago

@faisal03
6 years ago

#5 @mukesh27
6 years ago

#45639 was marked as a duplicate.

#6 @swissspidy
6 years ago

At the moment, Twenty Nineteen is still being developed on GitHub. This will change soon, but for now please submit changes to the theme as pull requests at https://github.com/WordPress/twentynineteen

By the way, if we decide to make this change, it sounds like a good addition for https://make.wordpress.org/core/handbook/best-practices/spelling/

#7 @faisal03
6 years ago

  • Focuses docs coding-standards added
  • Keywords has-patch added

@swissspidy Thanks for the suggestions. I have created a PR there https://github.com/WordPress/twentynineteen/pull/740

But in this ticket's patch, there are changes out of Twenty Nineteen, which should be approved.

Last edited 6 years ago by faisal03 (previous) (diff)

#8 @SergeyBiryukov
6 years ago

  • Keywords close added

Per https://make.wordpress.org/core/handbook/best-practices/spelling/, “block editor” or “block-based editor” should be used instead of “Block Editor” or “Gutenberg”.

#9 @kjellr
6 years ago

At the moment, Twenty Nineteen is still being developed on GitHub. This will change soon, but for now please submit changes to the theme as pull requests at https://github.com/WordPress/twentynineteen

@swissspidy Thanks for the suggestions. I have created a PR there https://github.com/WordPress/twentynineteen/pull/740

But in this ticket's patch, there are changes out of Twenty Nineteen, which should be approved.

Just noting that we're migrating Twenty Nineteen changes to Trac now, so I've closed that issue on GitHub in favor of this one.

The Twenty Nineteen changes in 45634.patch look good on my end, but I agree with @SergeyBiryukov that the references to "Block Editor" in 45634-Block-Editor.patch should be "block editor" or "block-based editor" instead.

Thanks!

@garrett-eclipse
6 years ago

Converting 'Block Editor' and 'Classic Editor', where not in reference to the plugin, to lowercase.

#10 @garrett-eclipse
6 years ago

  • Keywords 2nd-opinion added; close removed
  • Summary changed from Convert references to 'classic editor' and 'block editor' to proper nouns to Convert references to 'classic editor' and 'block editor' when referring to the interface and not the plugin

Hello,

I've uploaded a patch to address the 'Classic Editor' and 'Block Editor' instances that referred to the interfaces to lowercase. This follows the coding standards for spelling.

Updated the ticket title to reflect this.

Cheers

@garrett-eclipse
6 years ago

Refreshed so it applies cleanly

#11 @garrett-eclipse
6 years ago

  • Keywords 2nd-opinion removed
  • Milestone changed from Awaiting Review to 5.3

I've refreshed this for trunk in 45634.2.diff as well as handle one case of Classic block as the convention is to lowercase the 'block' portion of block names.
Reference - https://github.com/WordPress/gutenberg/issues/16118#issuecomment-501458511

Slating for 5.3 as it's an easy fix

@garrett-eclipse
5 years ago

Refresh, no code change, just addressing hunk offset.

#12 @garrett-eclipse
5 years ago

  • Keywords commit added
  • Owner set to garrett-eclipse
  • Status changed from new to accepted

This still applies cleanly and passes unit tests. I just refreshed in 45634.3.diff to address the hunk offset on trunk.

Moving into commit for final review, @SergeyBiryukov do you have time to look at this in 5.3?

#13 @ocean90
5 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 46386:

Docs: Convert 'Block Editor' to lowercase.

Props garrett-eclipse.
Fixes #45634.

Note: See TracTickets for help on using tickets.