Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibility, WP 5.5: SimplePie has been upgraded to 1.5.5, which is…
… cool, but could cause problems. Resolves PHP Warning: Declaration of FeedWordPie_Item::get_id($hash = false) should be compatible with SimplePie_Item::get_id($hash = false, $fn = "md5")
- Loading branch information
Showing
3 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
feedwordpie_item.class.php → ...implePie/1.3.1/feedwordpie_item.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
class FeedWordPie_Item extends SimplePie_Item { | ||
|
||
function get_id ($hash = false) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
class FeedWordPie_Item extends SimplePie_Item { | ||
|
||
function get_id ($hash = false, $fn = 'md5') { | ||
return apply_filters('feedwordpie_item_get_id', parent::get_id($hash, $fn), $hash, $this, $fn); | ||
} | ||
|
||
function get_title () { | ||
return apply_filters('feedwordpie_item_get_title', parent::get_title(), $this); | ||
} | ||
|
||
function get_description ($description_only = false) { | ||
return apply_filters('feedwordpie_item_get_description', parent::get_description($description_only), $description_only, $this); | ||
} | ||
|
||
function get_content ($content_only = false) { | ||
return apply_filters('feedwordpie_item_get_content', parent::get_content($content_only), $content_only, $this); | ||
} | ||
|
||
function get_categories () { | ||
return apply_filters('feedwordpie_item_get_categories', parent::get_categories(), $this); | ||
} | ||
|
||
function get_authors () { | ||
return apply_filters('feedwordpie_item_get_authors', parent::get_authors(), $this); | ||
} | ||
function get_contributors () { | ||
return apply_filters('feedwordpie_item_get_contributors', parent::get_contributors(), $this); | ||
} | ||
function get_copyright () { | ||
return apply_filters('feedwordpie_item_get_copyright', parent::get_copyright(), $this); | ||
} | ||
function get_date ($date_format = 'j F Y, g:i a') { | ||
return apply_filters('feedwordpie_item_get_date', parent::get_date($date_format), $date_format, $this); | ||
} | ||
function get_local_date ($date_format = '%c') { | ||
return apply_filters('feedwordpie_item_get_local_date', parent::get_local_date($date_format), $date_format, $this); | ||
} | ||
function get_links ($rel = 'alternate') { | ||
return apply_filters('feedwordpie_item_get_links', parent::get_links($rel), $rel, $this); | ||
} | ||
function get_enclosures () { | ||
return apply_filters('feedwordpie_item_get_enclosures', parent::get_enclosures(), $this); | ||
} | ||
function get_latitude () { | ||
return apply_filters('feedwordpie_item_get_lattitude', parent::get_lattitude(), $this); | ||
} | ||
function get_longitude () { | ||
return apply_filters('feedwordpie_item_get_longitude', parent::get_longtidue(), $this); | ||
} | ||
function get_source () { | ||
return apply_filters('feedwordpie_item_get_source', parent::get_source(), $this); | ||
} | ||
} /* class FeedWordPie_Item */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters