Skip to content

WP 5.0 Beta Compatibility #6019

@ghost

Description

Just experimented with WP Beta for 5.0 - issues come when trying to use Elementor and the Gutenberg plugin isn't installed. I had no idea about where you could put it, but I am using some code to mimic the functions that Elementor checks when looking for Gutenberg that exist in the plugin but not in WP core.

<?php
/*
Plugin Name: Leodan WP beta gutenberg init mimicry
Description: Replaces the functions that are present in the Gutenberg plugin but not in the WP Beta 5.0
Version: 0.1
Author: leodandesign
License: Help Yourself Mateys!!!
*/

    if (!function_exists('gutenberg_can_edit_post_type')) {

        function gutenberg_can_edit_post_type($post_type)
        {
            return true;
        }
    }

    if (!function_exists('gutenberg_init')) {
        function gutenberg_init()
        {
            return true;
        }
    }
    if (!function_exists( 'the_gutenberg_project' )){
        function the_gutenberg_project(){
            return true;
        }
    }

You can also find this on bitbucket https://bitbucket.org/LeodanDesign/leodan-wp5-fixes

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/mergedIndicates when a Pull Request has been merged to a Release.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions