Make WordPress Core


Ignore:
Timestamp:
12/17/2018 06:06:42 PM (6 years ago)
Author:
desrosj
Message:

Block Editor: Fix PHP warning when loading editor styles while in RTL.

In RTL languages, WordPress adds style-editor-rtl.css editor styles to the global $editor_styles.
This patch ignores handling these styles if the file is not preset.

Also, clarify the docs for the return value of the block_version function.

Props mostafa.s1990, desrosj, mukesh27.

Merges [43923] and [43924] to trunk.

Fixes #45288, #45342.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/blocks.php

    r44261 r44270  
    284284 *
    285285 * @param string $content Content to test.
    286  * @return int The block format version.
     286 * @return int The block format version is 1 if the content contains one or more blocks, 0 otherwise.
    287287 */
    288288function block_version( $content ) {
Note: See TracChangeset for help on using the changeset viewer.