[wp-trac] [WordPress Trac] #25349: Can't retrieve calculated excerpt bound by <!--more--> on single page view
WordPress Trac
noreply at wordpress.org
Mon Nov 17 17:27:08 UTC 2014
#25349: Can't retrieve calculated excerpt bound by <!--more--> on single page view
-------------------------------------+-----------------------------
Reporter: chriscoyier | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version: 3.6.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: template
-------------------------------------+-----------------------------
Comment (by NateWr):
To be honest, I would defer to those more experienced than myself
regarding whether or not it's better to try to cater to the 101 ways the
{{{$more}}} ''may'' be used or better to enforce a more consistent
behaviour. The core devs have a better perspective on what kind of
backwards compatibility is appropriate in a situation like this.
I don't have a strong preference as I can manage the transition in my
plugin either way. If anything, this incident has shown me that my
approach is probably not the best to take and I should begin thinking
about how to move away from hijacking the {{{$more}}} global within the
plugin.
Having said that, I suspect a {{{is_main_query}}} would go a long way. But
it also might just confuse things more when trying to figure out what the
{{{$more}}} global is going to be in any given situation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25349#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list