WordPress.org

Make WordPress Core

Ticket #46089: set-translations-i18n.diff

File set-translations-i18n.diff, 514 bytes (added by aduth, 22 months ago)
  • src/wp-includes/class.wp-scripts.php

    diff --git src/wp-includes/class.wp-scripts.php src/wp-includes/class.wp-scripts.php
    index 531bb3a165..cbcbc8ad14 100644
    class WP_Scripts extends WP_Dependencies { 
    514514                /** @var \_WP_Dependency $obj */
    515515                $obj = $this->registered[ $handle ];
    516516
    517                 if ( ! in_array( 'wp-i18n', $obj->deps, true ) ) {
     517                if ( 'wp-i18n' !== $handle && ! in_array( 'wp-i18n', $obj->deps, true ) ) {
    518518                        $obj->deps[] = 'wp-i18n';
    519519                }
    520520