[wp-trac] [WordPress Trac] #61825: HTML Duplication in Custom Plugin Output
WordPress Trac
noreply at wordpress.org
Mon Aug 5 19:37:01 UTC 2024
#61825: HTML Duplication in Custom Plugin Output
--------------------------------------------+-----------------------------
Reporter: eduard34 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.3.1
Severity: normal | Keywords:
Focuses: performance, php-compatibility |
--------------------------------------------+-----------------------------
Hello,
I've encountered an issue with a custom CRM plugin developed for our
WordPress site, bestcrmsoftware.com, where the HTML output for a
comparison table is being duplicated.
Steps to Reproduce:
Install the custom CRM plugin on a WordPress site.
Create a new post or page and use the shortcode [crm_comparison id="123"].
Preview or publish the page.
Expected Output:
The shortcode should generate a single HTML table with the CRM comparison
details.
{{{
<div class="crm-table">
<table>
<tr><th>Feature</th><th>CRM 1</th><th>CRM 2</th></tr>
<tr><td>Pricing</td><td>$25/mo</td><td>$30/mo</td></tr>
<tr><td>Support</td><td>24/7</td><td>Business Hours</td></tr>
</table>
</div>
}}}
Actual Output:
The shortcode generates the table twice, causing duplicate content in the
HTML output.
{{{
<div class="crm-table">
<table>
<tr><th>Feature</th><th>CRM 1</th><th>CRM 2</th></tr>
<tr><td>Pricing</td><td>$25/mo</td><td>$30/mo</td></tr>
<tr><td>Support</td><td>24/7</td><td>Business Hours</td></tr>
</table>
<table>
<tr><th>Feature</th><th>CRM 1</th><th>CRM 2</th></tr>
<tr><td>Pricing</td><td>$25/mo</td><td>$30/mo</td></tr>
<tr><td>Support</td><td>24/7</td><td>Business Hours</td></tr>
</table>
</div>
}}}
Environment:
WordPress Version: 6.3.1
Theme: Twenty Twenty-One
Plugins: Only the custom CRM plugin activated
Server: Apache/2.4.46 (Unix)
PHP Version: 7.4.13
The issue persists even when all other plugins are deactivated and the
default theme is used. I’ve also confirmed that the problem is not due to
any custom modifications in the theme.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61825>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list