deprecated function “create_function”
-
we get this messages:
1) ( ! ) Deprecated: Function create_function() is deprecated in ….wp-content\plugins\archives-calendar-widget\archives-calendar.php on line 69
instead, you should use like:
add_action("blabla...", function(){ } );
2) Notice: Undefined index: title in \wp-content\plugins\archives-calendar-widget\arw-widget.php on line 20
3) Warning: count(): Parameter must be an array or an object that implements Countable in wp-content\plugins\archives-calendar-widget\arw-widget.php on line 154
4) Warning: count(): Parameter must be an array or an object that implements Countable in \wp-content\plugins\archives-calendar-widget\arw-widget.php on line 185
5) (if chosen “months” instead of “years” in widget) Warning: count(): Parameter must be an array or an object that implements Countable in wp-content\plugins\archives-calendar-widget\arw-widget.php on line 388
6) if you can, please integrate ARCW Popover plugin. Please dont read full readme where you mention that there exist such addon. I accidentally saw that. So, please just integrate that inside the main plugin.
7) for ARCW popover addon, i have this suggestion for changes:
– on line 74th, you should have this code:$cat = !empty($params['cats']) ? $params['cats'] : ''; $post_type = !empty($params['posts']) ? $params['posts'] : 'post';
first thing is that it should check with (!empty) otherwise throws error, when that
arcf
parameter not defined at all.8) also, there is some bug in your plugin. For example, I choose “xyz” custom post type in main plugin, and it shows calendar well, but the popover plugin send the request, which only gets ‘post’ post-types, and not the custom-post which is set for that calendar. I think, from main calendar widget, you should output the javascript variable, which determines what custom post-types are being used, and the popover plugin should use that variable and send request to use that custom-post-types. (at this moment I see that uses
$url = $_POST['link']
with from where it tries to get some arguments ofarcf
parameter, which is incorrect, as our urls are like : example.com/2017/03/ and there are noarcf
arguments in url)9) also, will be nice to integrate
apply_filters
as many places as possible, so we can hook into plugin smoothly, like:$args =apply_filters('arcw_arguments_filter', $args); $posts_array = get_posts( $args );
and also in other places.
10) would be nice if in the bottom of calendar, there was a h2 (or bolded) text, which shows of which category posts are being shown on calendar (when calendar query was made with
$cat
parameter). If possible, the category chooser under calendar, will be much better!shortly, enable wp_debug and test your plugin fully on clean wordpress install, to see all the problems.
thanks, nice plugin !
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- The topic ‘deprecated function “create_function”’ is closed to new replies.