Commit a2d90ce
committed
Icons: Add label search support to
When filtering registered icons by a search term, the registry now matches the term against each icon's `label` in addition to its `name`. Previously only the `name` was searched, so icons whose human-readable label differed from their name could not be found.
Props mcsf, wildworks.
See #64847.
git-svn-id: https://develop.svn.wordpress.org/trunk@62551 602fd350-edb4-49c9-b593-d223f7449a82WP_Icons_Registry.1 parent a1314bb commit a2d90ce
2 files changed
Lines changed: 25 additions & 1 deletion
File tree
- src/wp-includes
- tests/phpunit/tests/icons
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
314 | 317 | | |
315 | 318 | | |
316 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
299 | 320 | | |
300 | 321 | | |
301 | 322 | | |
| |||
0 commit comments