Make WordPress Core

Changeset 57567


Ignore:
Timestamp:
02/08/2024 04:00:50 PM (3 years ago)
Author:
hellofromTonya
Message:

Coding Standards: Replace alias join() in WP_Font_Utils.

Replaces the alias join() with its canonical implode().

Using the canonical function name for PHP functions is strongly recommended, as aliases may be deprecated or removed without (much) warning.

Follow-up to [57539], [49193].

Props davidbinda.
Fixes #60473.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/fonts/class-wp-font-utils.php

    r57549 r57567  
    133133                );
    134134
    135                 return sanitize_text_field( join( ';', $slug_elements ) );
     135                return sanitize_text_field( implode( ';', $slug_elements ) );
    136136        }
    137137
Note: See TracChangeset for help on using the changeset viewer.