PHP 8.0 and above
Fatal error: Uncaught Error: Call to undefined function create_function() in /wp-content/plugins/royal-recent-posts-widget-by-category/royal-recent-posts-widget-by-category.php:253 Stack trace: #0 /wp-admin/includes/plugin.php(2314): include_once() #1 /wp-admin/plugins.php(192): plugin_sandbox_scrape(‘royal-recent-po…’) #2 {main} thrown in /wp-content/plugins/royal-recent-posts-widget-by-category/royal-recent-posts-widget-by-category.php on line 253
If you fix this by changed the widget_init:
function register_royal_recent_posts_widget_by_category() {
return register_widget("RRPWbC");
}
add_action( 'widgets_init', 'register_royal_recent_posts_widget_by_category');
Then the next error is:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed
Additional sidenote: all the $instance variables are not checked if the exists, when you didn’t setup the widget before a lot of notices/warnings will popup with debug mode on.
]]>Clients site is breaking on PHP8.0.1.
]]>What I am looking for, is to extend the default WordPress “Recent Post Widget“. All I really want to add is ability to filter which particular Category I want.
Now, your plugin can do it. But I already have 36 plugins on my website, and I don’t want to add more.
So I seem to be making a kind of tough request from you–Can you help me send me the raw code of this your plugin, which I can add in functions.php and still be able to get the correct function of your plugin?
2.) Or can you send me a code which will extend the default WordPress “Recent Post Widget by adding opportunity to select Category?
Needing to hear from you soon.
Regards
Regards
]]>