Skip to content

Conversation

@zamans78
Copy link
Contributor

Made compatible with WordPress 5.7.2

Fix for jQuery deprecated function

Changed function .change() to .on('change', function(){})

Changed jQuery(document).ready(function ($) { to jQuery(function ($) {

Changed Hook settings(see comment):

/**
     * Hooks to 'init' and resgisters new post status type
     *
     * @since 1.0.0
     */
    public function register_post_status()
    {
        register_post_status('limited', array(
            'label' => esc_html__('Limited', 'wpsite-limit-posts'),
            'public' => false,  // Changed from true to false.
            'exclude_from_search' => false,
            'show_in_admin_all_list' => true,
            'show_in_admin_status_list' => true,
            'label_count' => _n_noop('Limited <span class="count">(%s)</span>', 'Limited <span class="count">(%s)</span>', 'wpsite-limit-posts'),
        ));
    }

@zamans78 zamans78 requested a review from abhij89 May 20, 2021 14:21
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

Successfully merging this pull request may close these issues.

2 participants