Skip to content

Conversation

@fl0om
Copy link

@fl0om fl0om commented Jan 14, 2026

This PR adds a dedicated 1.9.0 directory to the SimplePie extensions, following the existing versioning pattern.

Problem:
When running on WordPress 6.9+ (SimplePie 1.9.0), FeedWordPress falls back to the minimalist default parser. This parser lacks namespace tracking, which causes custom metadata tags like $(prefix:tag) to return none.

Solution:

  • Created extend/SimplePie/1.9.0/.
  • Implemented an updated feedwordpie_parser.class.php that restores the xmlns_stack logic from version 1.8.1.
  • Updated the parser to comply with SimplePie 1.9.0 by making declare_html_entities() a static method, preventing Fatal Errors on modern PHP/SimplePie environments.
  • Included feedwordpie_cache.class.php and feedwordpie_item.class.php to ensure a complete, functional parser suite for this version.

Tested. Successfully restores custom namespace parsing.

Fixes: #168

Daniel added 3 commits January 14, 2026 11:52
When feedwordpress_diagnostics_output option doesn't exist in the database,
get_option() returns false instead of the default array() value, causing a
PHP Warning when attempting to iterate over $output in foreach().

This issue affected installations without saved diagnostic settings. The admin
interface already handled this case correctly with an is_array() check
(diagostics-page.php:190-193), but the diagnostic() method did not.

Cast to array() ensures $output is always iterable, preventing the warning.
Fixes PHP warnings when author mapping rules don't contain enough newline characters. Uses array_pad() to ensure explode() always returns at least 3 elements, preventing undefined array key warnings for $author_name and $author_action.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Post Settings (to apply to each syndicated post) stopped working for custom namespaces

1 participant