[wp-trac] [WordPress Trac] #18958: Can't set "Show on screen" for Custom post types
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 18 07:33:10 UTC 2011
#18958: Can't set "Show on screen" for Custom post types
----------------------------+------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.3
Component: Administration | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by dd32):
> Thinking we should make it a coding standard to use strings that qualify
as PHP (and JS) variables names in all these cases.
Sounds fair, Except that dashes are universally the standard for slugs in
!WordPress (URL's, Filenames, CSS classes, etc). Underscores are a PHP/JS
Language construct, which shouldn't make a difference here, as slugs
should never be hardcoded or expressed as a variable.
It's a shame that dash was ever sanitized to an underscore really, I still
can't see a good reason for it in this context.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18958#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list