C:\xampp\htdocs\landing\wp-content\plugins\classic-editor-addon\classic-editor-addon.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
 * Plugin Name:            Classic Editor Addon
 * Description:            This free "Classic Editor Addon" plugin makes sure that the new block editor cannot be accidentally activated and blocks the calls to additional styles from the <code>&lt;head&gt;</code> (frontend). See README for details.

 * Author:                <a href="https://so-wp.com">Pieter Bos</a>, <a href="https://gschoppe.com">Greg Schoppe</a>
 * Version:                2.6.3

 * Requires at least:    4.9
 * Tested up to:        5.5.0

 * License:                GPL-3.0+
 * License URI:            http://www.gnu.org/licenses/gpl-3.0.txt

 * Text Domain:         classic-editor-addon

 * GitHub Plugin URI:    https://github.com/senlin/classic-editor-addon
 * GitHub Branch:        master

 * @package WordPress
 * @author Pieter Bos &amp; GSchoppe
 * @since 1.0.0
 */

// don't load the plugin file directly
if ( ! defined'ABSPATH' ) ) exit;

// Load WP_Dependency_Installer
include_once( __DIR__ '/vendor/autoload.php' );
WP_Dependency_Installer::instance()->run__DIR__ );

add_action'plugins_loaded''classic_editor_addon_post_init'20);

function 
classic_editor_addon_post_init() {

    if ( 
class_exists'Classic_Editor' ) ) {
        
/**
         * Remove Settings link to the settings from the Plugins screen.
         */
        
remove_filter'plugin_action_links', array( 'Classic_Editor''add_settings_link' ) );
        
remove_action'admin_init', array( 'Classic_Editor''register_settings' ) );
    }

}

add_action'wp_enqueue_scripts''classic_editor_addon_remove_block_styles'100 );

function 
classic_editor_addon_remove_block_styles() {

    
wp_dequeue_style'wp-block-library' );
    
wp_deregister_style'wp-block-library' );

    
wp_dequeue_style'wp-block-library-theme' );
    
wp_deregister_style'wp-block-library-theme' );

    
// @2.5.0 add condition that checks for WooCommerce and removes call to block styles
    
if ( class_exists'woocommerce' ) ) {
        
wp_dequeue_style'wc-block-style' );
        
wp_deregister_style'wc-block-style' );
        
// @2.6.2 remove WooCommerce block scripts
        // rollback as issues are reported (https://wordpress.org/support/topic/version-2-6-2-breaks-woocommerce-checkout/)
        //wp_dequeue_script( 'jquery-blockui' );
        //wp_deregister_script( 'jquery-blockui' );
    
}

}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586