Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56078, comment 12


Ignore:
Timestamp:
11/18/2022 10:58:15 PM (17 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56078, comment 12

    initial v1  
    1414The intention here is to make sure no duplicate font families remain in the settings after merging them with the fonts from theme.json. As far as I see `fontFamily` is the identification, so probably best to ensure there are no duplicates of it even if `name` and `slug` are not the same. Perhaps the function that looks in the arrays and compares sub-array elements would work best.
    1515
    16 On the other hand this is a temporary, stopgap code that is going to be removed soon (I hope), so maybe adding `SORT_REGULAR` would be enough. Going to ping @hellofromTonya here for a decision.
     16On the other hand this is a temporary, stopgap code that is going to be removed soon (I hope), so maybe adding `SORT_REGULAR` would be enough. Going to defer to @hellofromTonya here for a decision.