Skip to content

Conversation

@GwynethLlewelyn
Copy link
Contributor

@GwynethLlewelyn GwynethLlewelyn commented Jan 11, 2025

Hi there,

I've been patching some things here and there, mostly to get rid of stupid errors on the logs, which annoy me 😁

Feel free to merge whatever you think that is worth the trouble!

Note: AFAICS, this already includes all the fixes proposed on #151.

Cheers,

— Gwyn

That way I can continue to break stuff without the risk of destroying
anything :-)
And a very few minor tweaks to avoid ‘wrong type’ errors on modern PHP versions.
Trying to find the place where a userid is expected but was NULL, breaking things upstream in WP core code.
*Something* is making WP_Query to crash upstream (not easy to do!), and it’s related to a bad user id, but I cannot figure out *where*
There is an issue here when freshness() is called outside of a hook: many things related to the query loop might not have been initialised yet, namely, get_userdata()
I don’t know how to fix that, so, for now, it just gets bypassed and logged instead of throwing an error

Additionally, some extra @uses and variable names, to keep the PHP Mess Detector happy :)
… because $delta comes in as a parameter and is returned untouched. Why? And how does the plugin know what to retire, then?
The problem here is that the resulting string might be empty, but perectly valid as an empty string…
I want this to show up properly on the dashboard!
When $custom_settings exists but has just one byt (say, a newline!), the unserialization breaks)
I’ve left the plus sign as PNG (and Retina-quality PNG) as well, just in case.
Note that this plus sign comes from the Wordpress Dashicons, just converted to SVGs, because you cannot use a ‘font’ for an <input type=“style”…>
This might require some rethinking on future changes
…lyn/feedwordpress into more-gwyn-submissions

# Conflicts:
#	feedwordpress.php
#	readme.txt
@GwynethLlewelyn
Copy link
Contributor Author

Fixed merge errors. Sorry for the time I took...

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.

1 participant