Changeset 2778775
- Timestamp:
- 09/01/2022 12:14:55 PM (4 years ago)
- File:
-
- 1 edited
-
embed-chessboard/trunk/embedchessboard.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
embed-chessboard/trunk/embedchessboard.php
r2439110 r2778775 8 8 Author: Paolo Casaschi 9 9 Author URI: http://pgn4web.casaschi.net 10 Copyright: copyright (C) 2009-202 0Paolo Casaschi10 Copyright: copyright (C) 2009-2022 Paolo Casaschi 11 11 12 12 ChangeLog: … … 275 275 else { $replacement = "<div style='" . $containerStyle . "' class='chessboard-wrapper'>"; } 276 276 277 // bugfix: adding an hidden PRE element outside the textarea in order to avoid the unwanted texturize of the shortcode due to the wordpress/gutenberg bug https://github.com/WordPress/gutenberg/issues/37754 see also https://core.trac.wordpress.org/ticket/54614 and https://wordpress.org/support/topic/bug-in-twenty-twenty-two-theme-shipping-with-wordpress-org-5-9/ 278 $replacement .= "<pre style='display:none;'>"; 277 279 $replacement .= "<textarea id='" . $pgnId . "' style='display:none;' cols='40' rows='8'>"; 278 280 $replacement .= $pgnText; 279 281 $replacement .= "</textarea>"; 282 // bugfix: closing the PRE element, see note few lines above 283 $replacement .= "</pre>"; 280 284 $replacement .= "<iframe src='" . plugins_url("pgn4web/board.html", __FILE__) . "?"; 281 285 $replacement .= "am=" . rawurlencode($autoplayMode);
Note: See TracChangeset
for help on using the changeset viewer.