Add upstream

This commit is contained in:
root
2019-10-24 00:12:05 +02:00
parent 85d41e4216
commit ac980f592c
3504 changed files with 1049983 additions and 29971 deletions

View File

@@ -0,0 +1,28 @@
/* eslint-disable no-var */
/* global wp, calypsoifyGutenberg */
jQuery( function( $ ) {
if (
wp &&
wp.data &&
wp.data.select &&
! wp.data.select( 'core/edit-post' ).isFeatureActive( 'fullscreenMode' )
) {
wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'fullscreenMode' );
}
var editPostHeaderInception = setInterval( function() {
var $closeButton = $( '.edit-post-fullscreen-mode-close__toolbar a' );
if ( $closeButton.length < 1 ) {
return;
}
clearInterval( editPostHeaderInception );
$closeButton.attr( 'href', calypsoifyGutenberg.closeUrl );
} );
$( 'body.revision-php a' ).each( function() {
var href = $( this ).attr( 'href' );
$( this ).attr( 'href', href.replace( '&classic-editor', '' ) );
} );
} );