[wp-trac] [WordPress Trac] #46555: update fails when I have a print statement in my code.

WordPress Trac noreply at wordpress.org
Thu Oct 9 14:52:26 UTC 2025


#46555: update fails when I have a print statement in my code.
--------------------------+------------------------------
 Reporter:  rweil55       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+------------------------------
Changes (by SirLouen):

 * keywords:  reporter-feedback => dev-feedback
 * version:  5.1 =>
 * component:  Posts, Post Types => Editor
 * severity:  minor => normal


Comment:

 == Reproduction Report
 === Description
 ✅ This report validates that the issue can be reproduced.

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.29
 - Server: nginx/1.29.1
 - Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
 - Browser: Chrome 140.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Seventeen 3.9
 - MU Plugins: None activated
 - Plugins:
   * BBB Testing Dolly
   * Test Reports 1.2.0

 === Testing Instructions
 1. Add, for example, a shortcode that prints and returns anything you want
 (some strings for example)
 2. Add this shortcode to any page
 3. 🐞 On save, post will be saved but error will still appear on the top

 === Actual Results
 1. ✅ Error condition occurs (reproduced).

 === Additional Notes
 - Although this is not the right thing, not having proper control
 structures may lead to this conflicts when dealing with the rest API
 [https://wordpress.stackexchange.com/questions/353644/gutenberg-running-
 code-only-available-in-front-end-within-shortcode/390391#390391 as
 reported here]. Maybe this behavior was expected, I leave this for a
 second opinion.

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


More information about the wp-trac mailing list