[wp-trac] [WordPress Trac] #53076: Press This: Add filters to allow custom Press This plugins
WordPress Trac
noreply at wordpress.org
Sun Mar 30 00:54:39 UTC 2025
#53076: Press This: Add filters to allow custom Press This plugins
-------------------------------------------------+-------------------------
Reporter: kraftbj | Owner: kraftbj
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.9
Component: Editor | Version: 4.9
Severity: normal | Resolution:
Keywords: has-testing-info has-patch needs- | Focuses:
dev-note |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: has-testing-info has-patch needs-testing => has-testing-info
has-patch needs-dev-note
Comment:
✅ I've tested with [https://github.com/SirLouen/press-this-testing my
plugin] and everything is working well as expected.
I confirmed the first patch, mainly because the original use-case, was to
have quick solution to add some tweaks to the Press-This OG plugin.
With this new patch, from a code perspective as @azaozz suggested, it's
much cleaner, but it's a hassle for the new plugin creator (at minimum,
needing to copy/paste the wp_load_press_this, to initialize the same the
original instance if he is only adding some tweaks to the OG).
Even with just one filter of the original 3 (the slug one), you could
perfectly achieve the original use-case as long as you preserved the same
loading filename and same class name in your tweaked plugin.
Let's remember which was the original use-case:
> If a site owner wants a custom version of Press This, they are required
to hack the plugin in some way (set the version super high and edit the
files, replace it with something of a high version, etc to ensure the
plugin is updated back to stock by WordPress).
With a different slug, this is perfectly sorted. And in terms of total
code, is even less than the action hook solution. And I seriously doubt
that anyone in 2025 is going to invest time on revamping a full Press-This
plugin, instead of just, either PRing the OG or just adding some little
tweaks.
Furthermore, with this new version with a hook action, I believe that a
dev-note is required 100% to explain what's going on. With filter hooks, I
feel that a dev note is optional, but it would be nice as well to inform
about this new "feature".
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53076#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list