[wp-trac] [WordPress Trac] #52753: using_index_permalinks() on null
WordPress Trac
noreply at wordpress.org
Wed Mar 10 08:55:21 UTC 2021
#52753: using_index_permalinks() on null
--------------------------+-----------------------------
Reporter: arena | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.6
Severity: major | Keywords:
Focuses: |
--------------------------+-----------------------------
On a plugin, on do_action('plugins_loaded'), this function is activated
{{{#!php
<?php
public function plugins_loaded() {
if ( ! class_exists( 'WP_Site_Health' ) ) require_once ABSPATH . 'wp-
admin/includes/class-wp-site-health.php';
self::$_tests = WP_Site_Health::get_tests();
}
}}}
this code was working in wp 5.5.3 but fails in wp 5.6
In 5.6 returns Call to a member function using_index_permalinks() on null
in wp-includes/rest-api.php:403
this code was working in wp 5.5.3 but fails in 5.6
Regards
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52753>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list