Make WordPress Core


Ignore:
Timestamp:
11/09/2021 02:15:23 AM (5 years ago)
Author:
noisysocks
Message:

Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9

  • First pass at adding the site editor from the Gutenberg plugin to wp-admin/site-editor.php.
  • Adds miscellaneous PHP changes from Gutenberg 10.1 - 11.9.

Follows [52042].
See #54337.
Props youknowriad, aristath, hellofromtonya, gziolo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r52044 r52069  
    40764076        );
    40774077}
     4078
     4079/**
     4080 * Returns whether the current theme is a block-based theme or not.
     4081 *
     4082 * @since 5.9.0
     4083 *
     4084 * @return boolean Whether the current theme is a block-based theme or not.
     4085 */
     4086function wp_is_block_template_theme() {
     4087        return is_readable( get_theme_file_path( '/block-templates/index.html' ) );
     4088}
Note: See TracChangeset for help on using the changeset viewer.