Opened 3 years ago
Closed 3 years ago
#6364 closed enhancement (fixed)
Optimize the syntax for judging whether to add "-" when preparing parameters in the SVN tool in the plugin directory
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Plugin Directory v3.0 | Priority: | lowest |
Component: | Plugin Directory | Keywords: | has-patch |
Cc: |
Description (last modified by )
'-' != substr( $key, 0, 1 )
to
!str_starts_with( $key, '-' )
Change History (3)
This ticket was mentioned in PR #74 on WordPress/wordpress.org by sunxiyuan.
3 years ago
#1
#2
@
3 years ago
- Description modified (diff)
- Priority changed from normal to lowest
Fixed description, it was the inverse of what you intended on saying :)
There's nothing wrong with the existing code, and any micro-optimizations here aren't going to make any form of impact.
That being said, I'll commit this, so we don't have the PR/ticket left open.
Note: See
TracTickets for help on using
tickets.
Optimize the syntax for judging whether to add "-" when preparing parameters in the SVN tool in the plugin directory
https://meta.trac.wordpress.org/ticket/6364