Changeset 3490763
- Timestamp:
- 03/25/2026 10:47:20 AM (9 days ago)
- Location:
- post-snippets/trunk
- Files:
-
- 3 edited
-
post-snippets.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/PostSnippets/Shortcode.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-snippets/trunk/post-snippets.php
r3480792 r3490763 12 12 * Plugin URI: https://www.postsnippets.com 13 13 * Description: Create a library of reusable content and insert it into your posts and pages. Navigate to "Settings > Post Snippets" to get started. 14 * Version: 4.0.1 814 * Version: 4.0.19 15 15 * Author: Postsnippets 16 16 * Author URI: https://www.postsnippets.com … … 136 136 } 137 137 if ( !defined( 'PS_VERSION' ) ) { 138 define( 'PS_VERSION', '4.0.1 8' );138 define( 'PS_VERSION', '4.0.19' ); 139 139 } 140 140 if ( !defined( 'PS_MAIN_FILE_PATH' ) ) { -
post-snippets/trunk/readme.txt
r3480792 r3490763 5 5 Tested up to: 6.9 6 6 Requires PHP: 8.0 7 Stable tag: 4.0.1 87 Stable tag: 4.0.19 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 114 114 115 115 == Changelog == 116 117 = Version 4.0.19 - 25 March 2026 = 118 119 - Fixed broken images in snippets. 116 120 117 121 = Version 4.0.18 - 12 March 2026 = -
post-snippets/trunk/src/PostSnippets/Shortcode.php
r3480792 r3490763 52 52 $val = (string) $val; 53 53 54 if ( 'url' === strtolower( $key ) || 'href' === strtolower( $key ) ) {54 if ( 'url' === strtolower( $key ) || 'href' === strtolower( $key ) || 'src' === strtolower( $key ) ) { 55 55 $val = esc_url_raw( $val ); 56 56 } … … 80 80 81 81 // WPTexturize the Snippet 82 if ( !empty($snippet['snippet_wptexturize']) && ( $snippet['snippet_wptexturize'] == true ) ) { 83 82 if ( ! empty( $snippet['snippet_wptexturize'] ) && ( $snippet['snippet_wptexturize'] == true ) ) { 84 83 $snippet_content = html_entity_decode( addslashes ( wptexturize ( htmlentities( stripslashes ( $snippet_content ), ENT_NOQUOTES ) ) ) ); 85 86 84 } 87 85 88 } 89 else{ 90 91 if ( !empty($snippet['snippet_wptexturize']) && ( $snippet['snippet_wptexturize'] == true ) ) { 92 86 } else { 87 if ( ! empty( $snippet['snippet_wptexturize'] ) && ( $snippet['snippet_wptexturize'] == true ) ) { 93 88 $snippet_content = html_entity_decode ( addslashes ( wptexturize ( htmlentities( stripslashes ( $snippet_content ), ENT_NOQUOTES ) ) ) ); 94 } 95 else{ 96 97 $snippet_content = $snippet_content ; 89 } else { 90 $snippet_content = html_entity_decode ( $snippet_content ); 98 91 } 99 92 }
Note: See TracChangeset
for help on using the changeset viewer.