[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 11:21:55 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             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by dartiss):

 Hi. My code was literally $excerpt = get_the_excerpt(); so nothing
 special. This was on a line on its own and simply removing this was enough
 to get the other plugins to start working again.

 I know I can work around it like this but was wondering why a call to a
 WordPress function such as this should cause such a catastrophic failure
 elsewhere. If their plugin runs first they're adding to the excerpt and
 I'm simply reading it. Shouldn't cause a problem. If mine runs first I'll
 have changed the shortcode to video embed code. But why would that then
 cause adding to the excerpt in these other plugins to fail?

 I'd obviously blame sloppy coding by them (ahem) but it's multiple
 plugins, including Jetpack, so that appears unlikely (and hence why I've
 logged this as a potential core issue).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34674#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list