Make WordPress Core


Ignore:
Timestamp:
02/08/2021 11:49:33 PM (5 years ago)
Author:
noisysocks
Message:

Fix wp.i18n.isRTL()

Fixes a bug causing wp.i18n.isRTL() to return false in RTL langauges by manually
loading the translated 'ltr' string for the i18n dependency. This ports over an
identical fix that was made in Gutenberg.

Fixes #52441.
Props @jonsurrell @youknowriad.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r50235 r50259  
    39323932                        "unbzip2-stream": "^1.3.3",
    39333933                        "ws": "^7.2.3"
     3934                    },
     3935                    "dependencies": {
     3936                        "devtools-protocol": {
     3937                            "version": "0.0.818844",
     3938                            "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.818844.tgz",
     3939                            "integrity": "sha512-AD1hi7iVJ8OD0aMLQU5VK0XH9LDlA1+BcPIgrAxPfaibx2DbWucuyOhc4oyQCbnvDDO68nN6/LcKfqTP343Jjg==",
     3940                            "dev": true
     3941                        }
    39343942                    }
    39353943                },
     
    80578065            "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz",
    80588066            "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==",
    8059             "dev": true
    8060         },
    8061         "devtools-protocol": {
    8062             "version": "0.0.818844",
    8063             "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.818844.tgz",
    8064             "integrity": "sha512-AD1hi7iVJ8OD0aMLQU5VK0XH9LDlA1+BcPIgrAxPfaibx2DbWucuyOhc4oyQCbnvDDO68nN6/LcKfqTP343Jjg==",
    80658067            "dev": true
    80668068        },
Note: See TracChangeset for help on using the changeset viewer.