Sponsored Content
The Wayback Machine - https://web.archive.org/web/20210225123052/https://github.com/elementor/elementor/issues/6019
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP 5.0 Beta Compatibility #6019

Closed
LeodanDesign opened this issue Oct 30, 2018 · 0 comments
Closed

WP 5.0 Beta Compatibility #6019

LeodanDesign opened this issue Oct 30, 2018 · 0 comments
Labels
Milestone

Comments

@LeodanDesign
Copy link

@LeodanDesign LeodanDesign commented Oct 30, 2018 •

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants