[wp-trac] [WordPress Trac] #31779: Warn users before using a built-in file editor for the first time
WordPress Trac
noreply at wordpress.org
Wed Jun 21 14:12:41 UTC 2017
#31779: Warn users before using a built-in file editor for the first time
--------------------------------------+---------------------------------
Reporter: helen | Owner: helen
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 4.9
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: ui, administration
--------------------------------------+---------------------------------
Comment (by melchoyce):
We'd like to resurrect this for 4.9. Some ideas:
If you're editing your theme:
> Looks like you're trying to edit your theme! We recommend creating a
[child theme](link to documentation) instead. This will let you make
changes to your theme without accidentally breaking anything."
Except with better copy. 😅
We could consider making a "make child theme" button that generates a
child theme with a functions.php and style.css.
Once someone makes a child theme, whether manually or using this button,
we should link to the child theme documentation at the top of the screen.
If someone's specifically editing their style.css, we should consider
showing an additional warning to directly them to Additional CSS:
> Hey, did you know there's a safer way to edit your site's CSS? Check out
[Additional CSS](link) in the Customizer.
If you're editing plugins:
> Looks like you're trying to edit your plugin. Editing this code is
highly discouraged; please proceed with caution and make sure to back up
your plugin before making edits.
(Though I have to say, the brevity of "Caution: You can break stuff here"
is appealing.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31779#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list