Changeset 1941474 for gutenberg/trunk/gutenberg.php
- Timestamp:
- 09/14/2018 05:19:43 PM (8 years ago)
- File:
-
- 1 edited
-
gutenberg/trunk/gutenberg.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gutenberg/trunk/gutenberg.php
r1939992 r1941474 4 4 * Plugin URI: https://github.com/WordPress/gutenberg 5 5 * Description: Printing since 1440. This is the development plugin for the new block editor in core. 6 * Version: 3. 8.06 * Version: 3.9.0-rc.1 7 7 * Author: Gutenberg Team 8 8 * … … 11 11 12 12 ### BEGIN AUTO-GENERATED DEFINES 13 define( 'GUTENBERG_VERSION', '3. 8.0' );14 define( 'GUTENBERG_GIT_COMMIT', ' a22963998c9f26439630d46a18303b6ae76ca694' );13 define( 'GUTENBERG_VERSION', '3.9.0' ); 14 define( 'GUTENBERG_GIT_COMMIT', '6ec4ca81d271d07955b468b038b3058f35289955' ); 15 15 ### END AUTO-GENERATED DEFINES 16 16 … … 262 262 unset( $actions['edit'] ); 263 263 unset( $actions['inline hide-if-no-js'] ); 264 $actions['export'] = sprintf( 265 '<a class="wp-list-reusable-blocks__export" href="#" data-id="%s" aria-label="%s">%s</a>', 266 $post->ID, 267 __( 'Export as JSON', 'gutenberg' ), 268 __( 'Export as JSON', 'gutenberg' ) 269 ); 264 270 return $actions; 265 271 } … … 470 476 */ 471 477 function gutenberg_add_admin_body_class( $classes ) { 472 // Default to is-fullscreen-mode to avoid jumps in the UI. 473 return "$classes gutenberg-editor-page is-fullscreen-mode"; 474 } 478 if ( current_theme_supports( 'editor-styles' ) && current_theme_supports( 'dark-editor-style' ) ) { 479 return "$classes gutenberg-editor-page is-fullscreen-mode is-dark-theme"; 480 } else { 481 // Default to is-fullscreen-mode to avoid jumps in the UI. 482 return "$classes gutenberg-editor-page is-fullscreen-mode"; 483 } 484 } 485 486 /** 487 * Adds attributes to kses allowed tags that aren't in the default list 488 * and that Gutenberg needs to save blocks such as the Gallery block. 489 * 490 * @param array $tags Allowed HTML. 491 * @return array (Maybe) modified allowed HTML. 492 */ 493 function gutenberg_kses_allowedtags( $tags ) { 494 if ( isset( $tags['img'] ) ) { 495 $tags['img']['data-link'] = true; 496 $tags['img']['data-id'] = true; 497 } 498 return $tags; 499 } 500 501 add_filter( 'wp_kses_allowed_html', 'gutenberg_kses_allowedtags', 10, 2 );
Note: See TracChangeset
for help on using the changeset viewer.