- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
624 B
JavaScript
Executable File
24 lines
624 B
JavaScript
Executable File
( function( wp ) {
|
|
if ( ! wp ) {
|
|
return;
|
|
}
|
|
|
|
wp.plugins.registerPlugin( 'classic-editor-plugin', {
|
|
render: function() {
|
|
var createElement = wp.element.createElement;
|
|
var PluginMoreMenuItem = wp.editPost.PluginMoreMenuItem;
|
|
var url = wp.url.addQueryArgs( document.location.href, { 'classic-editor': '', 'classic-editor__forget': '' } );
|
|
var linkText = lodash.get( window, [ 'classicEditorPluginL10n', 'linkText' ] ) || 'Switch to classic editor';
|
|
|
|
return createElement(
|
|
PluginMoreMenuItem,
|
|
{
|
|
icon: 'editor-kitchensink',
|
|
href: url,
|
|
},
|
|
linkText
|
|
);
|
|
},
|
|
} );
|
|
} )( window.wp );
|