Which files, what code was changed to make Events+ compatible with latest WP?

We have made extensive custom changes to the plugin in version 1.7.2 . - so we don't want to update the plugin as all our custom changes would be lost/won't work.

This version now crashes the site when WP 4.5 is activated.

Could you please advise which files/code was changed to make the plugin compatible with 4.5?

Regards
Simon

  • Jose

    Hello Simon,

    Hope you are doing great today.

    Luckily, this is a very simple change. A single line of code, to be precise.

    In the file events-and-bookings.php line 1244 we changed this:

    function check_rewrite_rules ($values) {
     		//prevent an infinite loop
     		if (!post_type_exists(Eab_EventModel::POST_TYPE)) return $values;

    into this:

    function check_rewrite_rules ($values) {
    		remove_action('option_rewrite_rules', array($this, 'check_rewrite_rules'));
     		//prevent an infinite loop
     		if (!post_type_exists(Eab_EventModel::POST_TYPE)) return $values;

    Let me know if you need further help.

    Cheers,
    José

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.