[wp-trac] [WordPress Trac] #34674: Failure updating excerpts when a plugin is using get_the_excerpt() function
WordPress Trac
noreply at wordpress.org
Fri Nov 13 10:14:17 UTC 2015
#34674: Failure updating excerpts when a plugin is using get_the_excerpt() function
-------------------------------+-----------------------------
Reporter: dartiss | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
Apologies if this isn't an actual bug but I can't see any reference to
this anywhere and not sure what else to look at.
I've authored the plugin YouTube Embed. With version 4.0 I used
get_the_excerpt() to get information for video metadata. However, upon
release I heard from a number of users who were finding it was causing
other plugins to crash - e.g. Jetpack Social and Add to Any.
I found that by simply removing the above function call it would rectify
the issue. However, I'm unable to understand why.
The plugins with issues all have one thing in common - they're modifying
the excerpt. So why would a read of the excerpt data then cause these to
crash in some way? I tested specifically with Add to Any and no errors
were output but, equally, it would not output the share icons for any post
that called the get_the_excerpt function. However, it would work on any
other post that didn't call my plugin.
So, I'm left with a dilemma as I don't believe my plugin is doing anything
illegal and is simply calling, within a post, a valid WordPress function.
So why would it then have such an effect on other plugins?
Any thoughts/suggestions on this would be greatly appreciated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34674>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list