[wp-trac] [WordPress Trac] #19239: Combine WordPress News and Other WordPress News dashboard widgets
WordPress Trac
noreply at wordpress.org
Thu Jan 10 06:08:00 UTC 2013
#19239: Combine WordPress News and Other WordPress News dashboard widgets
-----------------------------+------------------
Reporter: jane | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 3.6
Component: Administration | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+------------------
Comment (by DrewAPicture):
Replying to [comment:4 SergeyBiryukov]:
> Current widgets allow to change the RSS feed URL and title, for example
to replace the English feed with a localized one.
>
> I guess the new widget should support that as well. Also, from the
description:
> > Configure would allow to choose display of both feeds or just one, and
how many items to show.
Looking at how the configuration options are currently done, it appears
that all four built-in RSS widgets (three Dashboard widgets and a sidebar
widget) use the same form which is generated by `wp_widget_rss_form()`.
In my reading of the existing setup, we'd need to add a couple of
additional arguments to the array passed via
`wp_dashboard_newsfeed_control()` to `wp_dashboard_rss_control()` as well
as `$_POST` handlers for that data. `wp_widget_rss_form()` would need
corresponding key/value pairs too. Then there'd need to be a switched
based on the `$widget_id` to activate the secondary title and URL fields.
That's if we stick with modifying the existing rss control, CMIIW.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19239#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list