You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugin is defining few constants: RED_DEFAULT_PER_PAGE & RED_MAX_PER_PAGE in admin section, but using in other sections too. This is not problem usually, but in some cases error below will be thrown.
PHP Warning: Use of undefined constant RED_DEFAULT_PER_PAGE in /wp-content/plugins/redirection/models/redirect/redirect.php on line 946
p.s. same with RED_MAX_PER_PAGE
Steps to reproduce
If other plugin wants to get redirects, like:
$Red_Item = new Red_Item([]);
$redirects = $Red_Item->get_filtered([]); //method works nice outside of plugin, but error will be thrown here
Environment
WP: 6.4.3
Plugin: 5.4.2
p.s. no need to reply, I already fixed it by editing plugin and moving these constants to main plugin file. But I might need to update plugin, other people may have same issue.
p.s.s. plugin is amazing, thank you.
The text was updated successfully, but these errors were encountered:
Summary
Plugin is defining few constants: RED_DEFAULT_PER_PAGE & RED_MAX_PER_PAGE in admin section, but using in other sections too. This is not problem usually, but in some cases error below will be thrown.
PHP Warning: Use of undefined constant RED_DEFAULT_PER_PAGE in /wp-content/plugins/redirection/models/redirect/redirect.php on line 946
p.s. same with
RED_MAX_PER_PAGE
Steps to reproduce
If other plugin wants to get redirects, like:
Environment
WP: 6.4.3
Plugin: 5.4.2
p.s. no need to reply, I already fixed it by editing plugin and moving these constants to main plugin file. But I might need to update plugin, other people may have same issue.
p.s.s. plugin is amazing, thank you.
The text was updated successfully, but these errors were encountered: