Strange Nesting Issue When Using Excerpts
-
I’ve discovered an odd nesting issue when using excerpts, instead of the full text in the tooltip. An example of the outcome can be seen here: http://debt-collect.us/glossary/statute-of-limitations-arizona/. As you can see, WP Glossary is improperly extending its span to encompass considerably more of the page than it should.
Here is the code for that page:
[gn_list style="time"] <ul> <li><strong>Written Contracts</strong>: 6</li> <li><strong>Oral Contracts</strong>: 3</li> <li><strong>Promissory Notes</strong>: 6</li> <li><strong>Open-Ended Accounts</strong>: [glossary slug='statute-of-limitations-arizona-caveat']3 or 6[/glossary]</li> </ul> [/gn_list] <br class="spacer" /> <strong>§ 12-510. Exemption of state from limitations</strong> Except as provided in § 12-529, the state shall not be barred by the limitations of actions prescribed in this chapter. <br class="spacer" /> <strong>§ 12-543. Oral debt; stated or open account; relief on ground of fraud or mistake; three year limitation</strong> There shall be commenced and prosecuted within three years after the cause of action accrues, and not afterward, the following actions: <ol class="glossary-decimal"> <li>For debt where the indebtedness is not evidenced by a contract in writing.</li> <li>Upon stated or open accounts other than such mutual and current accounts as concern the trade of merchandise between merchant and merchant, their factors or agents, but no item of a stated or open account shall be barred so long as any item thereof has been incurred within three years immediately prior to the bringing of an action thereon.</li> <li>For relief on the ground of fraud or mistake, which cause of action shall not be deemed to have accrued until the discovery by the aggrieved party of the facts constituting the fraud or mistake.</li> </ol> <br class="spacer" /> <strong>§ 12-548. Contract in writing for debt; six year limitation; choice of law</strong> <ol class="glossary-upper-latin"> <li>An action for debt shall be commenced and prosecuted within six years after the cause of action accrues, and not afterward, if the indebtedness is evidenced by or founded on either of the following:</li> <ol class="glossary-decimal glossary-tier-two"> <li>A contract in writing that is executed in this state.</li> <li>A credit card as defined in § 13-2101, paragraph 3, subdivision (a).</li> </ol> <li>If there is a conflict between another jurisdiction and this state relating to the statute of limitations for a debt action as described in subsection A of this section, this section applies.</li> </ol>When I turn off using excerpts, the issue seems to go away. I know the issue is not with any of the formatting in the excerpt; here is the excerpt for the linked page:
In Arizona, credit cards, as defined in Ariz. Rev. Stat. Ann. § 13-2101, are subject to a six-year statute of limitations.I am not certain if this was working properly prior to 2.4.1, as I had not nested things in quite this fashion before updating a few hours ago.
To make matters, perhaps, stranger, it seems that nesting after this fashion results in even stranger results when there is no content in the same element as the WP Glossary entries after those entries. The code for this page: http://debt-collect.us/2013/06/test-post-ii/, is as follows:
<ul> <li>[glossary slug='statute-of-limitations-arizona' /]</li> <li>[glossary slug='statute-of-limitations-arizona-caveat' /]</li> <li>[glossary slug='statute-of-limitations-alaska' /]</li> <li>[glossary slug='statute-of-limitations-alabama' /]</li> </ul> [gn_tabs style="1"] [gn_tab][glossary slug='statute-of-limitations-arizona' /][/gn_tab] [gn_tab][glossary slug='statute-of-limitations-arizona-caveat' /][/gn_tab] [gn_tab][glossary slug='statute-of-limitations-alaska' /][/gn_tab] [gn_tab][glossary slug='statute-of-limitations-alabama' /][/gn_tab] [/gn_tabs] [gn_list style="time"] <ul> <li>[glossary slug='statute-of-limitations-arizona' /]</li> <li>[glossary slug='statute-of-limitations-arizona-caveat' /]</li> <li>[glossary slug='statute-of-limitations-alaska' /]</li> <li>[glossary slug='statute-of-limitations-alabama' /]</li> </ul> [/gn_list] [gn_tabs style="1"] [gn_tab][glossary slug='statute-of-limitations-arizona' /][/gn_tab] [gn_tab][glossary slug='statute-of-limitations-arizona-caveat' /][/gn_tab] [gn_tab][glossary slug='statute-of-limitations-alaska' /][/gn_tab] [gn_tab][glossary slug='statute-of-limitations-alabama' /][/gn_tab] [/gn_tabs]What makes this stranger, and convinces me that the issue lies with WP Glossary and not Shortcodes Ultimate or some other plugin running on the site, is the following page: http://debt-collect.us/2013/06/test-post-iii/, which has the following code:
<ul> <li>[glossary slug='statute-of-limitations-arizona' /]</li> <li>[glossary slug='statute-of-limitations-arizona-caveat' /]</li> <li>[glossary slug='statute-of-limitations-alaska' /]</li> <li>[glossary slug='statute-of-limitations-alabama' /]</li> </ul> [glossary slug='statute-of-limitations-arizona' /] [glossary slug='statute-of-limitations-arizona-caveat' /] [glossary slug='statute-of-limitations-alaska' /] [glossary slug='statute-of-limitations-alabama' /] [glossary slug='statute-of-limitations-arizona']Arizona[/glossary] [glossary slug='statute-of-limitations-arizona-caveat']Arizona-Caveat[/glossary] [glossary slug='statute-of-limitations-alaska']Alaska[/glossary] [glossary slug='statute-of-limitations-alabama']Alabama[/glossary]As you can see, the WP Glossary entries are not functioning as expected even when they are the only content on the page.
For the sake of thoroughness, the issue persists even when lists are not used in the code: http://debt-collect.us/2013/06/test-post-iv/.
Please let me know if any additional troubleshooting steps would be helpful.
The topic ‘Strange Nesting Issue When Using Excerpts’ is closed to new replies.