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

check_previous_meta function meta field conflict #33

Open
ghostpool opened this issue May 24, 2016 · 1 comment
Open

check_previous_meta function meta field conflict #33

ghostpool opened this issue May 24, 2016 · 1 comment

Comments

@ghostpool
Copy link

ghostpool commented May 24, 2016

The check_previous_meta function in radium-importer.php conflicts with meta field options. This can be replicated using the WP Job Manager plugin. When checking a checkbox on job posts the checkbox does not remaine checked once you save the post. As soon as this function is removed the checkbox stays checked when the post is saved.

For now I'm running a check to only use this function on themes.php using $pagenow:

        global $pagenow;
        if ( $pagenow === 'themes.php' ) {
            add_filter( 'add_post_metadata', array( $this, 'check_previous_meta' ), 10, 5 );
        }

Will this code still be run when importing demo data? Is there a better alternative to this?

@dgwatkins
Copy link

We are having an issue with WPML too because of this.
https://wpml.org/forums/topic/whenever-woocommerce-multilingual-is-active-checkout-does-not-work/

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

No branches or pull requests

2 participants