[wp-trac] [WordPress Trac] #50159: Simplepie 1.5.5 - code review and modifications
WordPress Trac
noreply at wordpress.org
Wed May 13 22:29:14 UTC 2020
#50159: Simplepie 1.5.5 - code review and modifications
--------------------------------------+------------------------------
Reporter: arena | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Feeds | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by afragen):
Replying to [comment:18 arena]:
> Replying to [comment:16 afragen]:
> > Replying to [comment:14 arena]:
> > > Yes, i have noticed that too. This is a replication of the samples
provided by SimplePie.
> > >
> > > This transient has a 12 hours lifetime by default and if deprecated
will be erased by appropriate wp-cron job 'delete_expired_transients'.
> > >
> > > I also changed some class names and added 2 new files
> > >
> > > Replying to [comment:12 afragen]:
> > > > You have also changed the transient names.
> > > >
> > > >
> > > > {{{
> > > > 54 $this->name = 'feed_' .
$filename;
> > > > 55 $this->mod_name = 'feed_mod_' .
$filename;
> > > > }}}
> > > >
> > > > to
> > > >
> > > >
> > > > {{{
> > > >
> > > > 54 $this->name = 'feed_' . md5(
"$filename:$extension" );
> > > > 55 $this->mod_name = 'feed_mod_' . md5(
"$filename:$extension" );
> > > >
> > > > }}}
> > > >
> > > > This particular item will cause an issue for me.
> > > > https://github.com/afragen/wordpress-beta-
tester/blob/develop/src/WPBT/WPBT_Beta_RC.php#L520-L522
> >
> >
> > I noticed the change, my point was why? There is potential
incompatibility by changing and there is no need to change it.
>
> #17 in reply to: ↑ 14 @arena
> 0 seconds ago
>
> On
>
> This particular item will cause an issue for me.
> https://github.com/afragen/wordpress-beta-
tester/blob/develop/src/WPBT/WPBT_Beta_RC.php#L520-L522
>
> Are you using SimplePie cache for what looks like a sensitive feed
(https://wordpress.org/news/category/development/feed/) ?
I don't understand what you mean by a ''sensitive feed''.
I am using `wp_widget_rss_output()`. This function caches the data and
stores it in the SimplePie transient which is named as the first set of
transient names. `'feed_' . $filename` and `'feed_mod_' . $filename`. The
`$extension` isn't part of that transient name.
And yes this transient is cached correctly, expiring in 12 hours.
>
> On
>
> Why this change ?
>
> then why all these wp classes extending simplepie if they are useless ?
I'm not saying this PR isn't worthwhile. I'm trying to understand the
differences between the PR and the current code. I'm simply trying to
point out the differences.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50159#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list