[wp-trac] [WordPress Trac] #54580: Latest Posts Gutenberg Block not supporting args filter.

WordPress Trac noreply at wordpress.org
Sun Dec 5 17:46:09 UTC 2021


#54580: Latest Posts Gutenberg Block not supporting args filter.
-----------------------------+-------------------------------
 Reporter:  martin7ba        |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Widgets          |    Version:  5.8.2
 Severity:  normal           |   Keywords:  reporter-feedback
  Focuses:  rest-api         |
-----------------------------+-------------------------------
 Shouldn't we add the filter for recent posts widget arguments in the
 Latest Posts Block?

 {{{#!php
 <?php
 $args = apply_filters(
                 'widget_posts_args',
                 $args
         );
 }}}

 I didn't find it in the core wp-includes/blocks/latest-posts.php

 This breaks the functionality in my plugin for hiding posts in the Recent
 Posts Widget.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54580>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list