Plugin Directory

Changeset 3490763


Ignore:
Timestamp:
03/25/2026 10:47:20 AM (9 days ago)
Author:
wpexpertsio
Message:
  • fixed broken images in snippets
Location:
post-snippets/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • post-snippets/trunk/post-snippets.php

    r3480792 r3490763  
    1212 * Plugin URI: https://www.postsnippets.com
    1313 * 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.18
     14 * Version: 4.0.19
    1515 * Author: Postsnippets
    1616 * Author URI: https://www.postsnippets.com
     
    136136    }
    137137    if ( !defined( 'PS_VERSION' ) ) {
    138         define( 'PS_VERSION', '4.0.18' );
     138        define( 'PS_VERSION', '4.0.19' );
    139139    }
    140140    if ( !defined( 'PS_MAIN_FILE_PATH' ) ) {
  • post-snippets/trunk/readme.txt

    r3480792 r3490763  
    55Tested up to: 6.9
    66Requires PHP: 8.0
    7 Stable tag: 4.0.18
     7Stable tag: 4.0.19
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    114114
    115115== Changelog ==
     116
     117= Version 4.0.19 - 25 March 2026 =
     118
     119- Fixed broken images in snippets.
    116120
    117121= Version 4.0.18 - 12 March 2026 =
  • post-snippets/trunk/src/PostSnippets/Shortcode.php

    r3480792 r3490763  
    5252                $val = (string) $val;
    5353
    54                 if ( 'url' === strtolower( $key ) || 'href' === strtolower( $key ) ) {
     54                if ( 'url' === strtolower( $key ) || 'href' === strtolower( $key ) || 'src' === strtolower( $key ) ) {
    5555                    $val = esc_url_raw( $val );
    5656                }
     
    8080               
    8181                // WPTexturize the Snippet
    82                 if ( !empty($snippet['snippet_wptexturize']) && ( $snippet['snippet_wptexturize'] == true ) ) {
    83                    
     82                if ( ! empty( $snippet['snippet_wptexturize'] ) && ( $snippet['snippet_wptexturize'] == true ) ) {
    8483                    $snippet_content = html_entity_decode( addslashes ( wptexturize ( htmlentities( stripslashes ( $snippet_content ), ENT_NOQUOTES ) ) ) );
    85 
    8684                }
    8785
    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 ) ) {
    9388                    $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 );
    9891                }
    9992            }           
Note: See TracChangeset for help on using the changeset viewer.