Changeset 3480792
- Timestamp:
- 03/12/2026 04:56:18 AM (3 weeks ago)
- Location:
- post-snippets/trunk
- Files:
-
- 26 edited
-
post-snippets.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
src/PS_functions.php (modified) (1 diff)
-
src/PostSnippets/Admin.php (modified) (1 diff)
-
src/PostSnippets/DBTable.php (modified) (1 diff)
-
src/PostSnippets/Edit.php (modified) (1 diff)
-
src/PostSnippets/Features.php (modified) (1 diff)
-
src/PostSnippets/Help.php (modified) (1 diff)
-
src/PostSnippets/ImportExport.php (modified) (1 diff)
-
src/PostSnippets/PSallSnippets.php (modified) (3 diffs)
-
src/PostSnippets/Shortcode.php (modified) (3 diffs)
-
src/PostSnippets/View.php (modified) (1 diff)
-
src/PostSnippets/WPEditor.php (modified) (1 diff)
-
views/admin_news.php (modified) (1 diff)
-
views/admin_options.php (modified) (1 diff)
-
views/admin_snippets.php (modified) (1 diff)
-
views/help/advanced.php (modified) (1 diff)
-
views/help/filters.php (modified) (1 diff)
-
views/help/gutenberg.php (modified) (1 diff)
-
views/help/php.php (modified) (1 diff)
-
views/help/post.php (modified) (1 diff)
-
views/help/restapi.php (modified) (1 diff)
-
views/help/sidebar.php (modified) (1 diff)
-
views/help/usage.php (modified) (1 diff)
-
views/jquery_ui_dialog_footer.php (modified) (1 diff)
-
views/jquery_ui_dialog_head.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
post-snippets/trunk/post-snippets.php
r3473286 r3480792 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 714 * Version: 4.0.18 15 15 * Author: Postsnippets 16 16 * Author URI: https://www.postsnippets.com 17 17 * License: GPL-2.0+ 18 18 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 19 * Tested up to: WP6.919 * Tested up to: 6.9 20 20 * Text Domain: post-snippets 21 21 * Domain Path: /lang … … 23 23 * @fs_premium_only /assets-pro/ 24 24 */ 25 26 if ( ! defined( 'ABSPATH' ) ) exit; 25 27 26 28 if ( !function_exists( 'postsnippets_fs' ) ) { … … 134 136 } 135 137 if ( !defined( 'PS_VERSION' ) ) { 136 define( 'PS_VERSION', '4.0.1 7' );138 define( 'PS_VERSION', '4.0.18' ); 137 139 } 138 140 if ( !defined( 'PS_MAIN_FILE_PATH' ) ) { -
post-snippets/trunk/readme.txt
r3473286 r3480792 5 5 Tested up to: 6.9 6 6 Requires PHP: 8.0 7 Stable tag: 4.0.1 77 Stable tag: 4.0.18 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.18 - 12 March 2026 = 118 119 - Fixed JS Code breaks 116 120 117 121 = Version 4.0.17 - 27 February 2026 = -
post-snippets/trunk/src/PS_functions.php
r3467209 r3480792 1 1 <?php 2 3 if ( ! defined( 'ABSPATH' ) ) exit; 4 2 5 /** 3 6 * @return gutenbergBlocks -
post-snippets/trunk/src/PostSnippets/Admin.php
r3467209 r3480792 1 1 <?php 2 3 2 namespace PostSnippets; 3 4 if ( ! defined( 'ABSPATH' ) ) exit; 4 5 5 6 /** -
post-snippets/trunk/src/PostSnippets/DBTable.php
r3467209 r3480792 1 1 <?php 2 2 namespace PostSnippets; 3 4 if ( ! defined( 'ABSPATH' ) ) exit; 3 5 4 6 class DBTable{ -
post-snippets/trunk/src/PostSnippets/Edit.php
r3467209 r3480792 1 1 <?php 2 3 2 namespace PostSnippets; 3 4 if ( ! defined( 'ABSPATH' ) ) exit; 4 5 5 6 /** -
post-snippets/trunk/src/PostSnippets/Features.php
r3467209 r3480792 1 1 <?php 2 namespace PostSnippets; 2 3 3 namespace PostSnippets;4 if ( ! defined( 'ABSPATH' ) ) exit; 4 5 5 6 /** -
post-snippets/trunk/src/PostSnippets/Help.php
r3467209 r3480792 1 1 <?php 2 2 namespace PostSnippets; 3 4 if ( ! defined( 'ABSPATH' ) ) exit; 3 5 4 6 /** -
post-snippets/trunk/src/PostSnippets/ImportExport.php
r3467209 r3480792 1 1 <?php 2 2 namespace PostSnippets; 3 4 if ( ! defined( 'ABSPATH' ) ) exit; 3 5 4 6 /** -
post-snippets/trunk/src/PostSnippets/PSallSnippets.php
r3467209 r3480792 1 1 <?php 2 2 namespace PostSnippets; 3 4 if ( ! defined( 'ABSPATH' ) ) exit; 3 5 4 6 /** … … 1037 1039 ?> 1038 1040 1039 <script><?php echo esc_js($snippet_content); ?></script>1041 <script><?php echo $snippet_content; ?></script> 1040 1042 1041 1043 <?php … … 1067 1069 1068 1070 <style> 1069 <?php echo esc_html($snippet_content); ?>1071 <?php echo $snippet_content; ?> 1070 1072 </style> 1071 1073 -
post-snippets/trunk/src/PostSnippets/Shortcode.php
r3473286 r3480792 1 1 <?php 2 2 namespace PostSnippets; 3 4 if ( ! defined( 'ABSPATH' ) ) exit; 3 5 4 6 /** … … 47 49 $short_atts["content"] = $content; 48 50 } 49 foreach ($short_atts as $key => $val) { 50 $clean_val = strtr((string) $val, 51 foreach ( $short_atts as $key => $val ) { 52 $val = (string) $val; 53 54 if ( 'url' === strtolower( $key ) || 'href' === strtolower( $key ) ) { 55 $val = esc_url_raw( $val ); 56 } 57 58 $clean_val = strtr( 59 $val, 51 60 array( 52 61 '"' => '"', … … 54 63 ) 55 64 ); 65 56 66 $snippet_content = str_replace( "{" . $key . "}", $clean_val, $snippet_content ); 57 67 } -
post-snippets/trunk/src/PostSnippets/View.php
r3467209 r3480792 1 1 <?php 2 2 namespace PostSnippets; 3 4 if ( ! defined( 'ABSPATH' ) ) exit; 3 5 4 6 /** -
post-snippets/trunk/src/PostSnippets/WPEditor.php
r3467209 r3480792 1 1 <?php 2 2 namespace PostSnippets; 3 4 if ( ! defined( 'ABSPATH' ) ) exit; 3 5 4 6 /** -
post-snippets/trunk/views/admin_news.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <h2 style="margin-top:40px;">More plugins by WPexperts:</h2> 2 6 -
post-snippets/trunk/views/admin_options.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <form method="post" action="options.php"> 2 6 <?php -
post-snippets/trunk/views/admin_snippets.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <form method="post" action="" class="post-snippets-wrap"> 2 6 <?php -
post-snippets/trunk/views/help/advanced.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <h2><?php _e('Advanced', 'post-snippets'); ?> (<em><?php _e('for developers', 'post-snippets'); ?></em>)</h2> 2 6 -
post-snippets/trunk/views/help/filters.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <h2><?php _e('Filters', 'post-snippets'); ?> (<em><?php _e('for developers', 'post-snippets'); ?></em>)</h2> 2 6 -
post-snippets/trunk/views/help/gutenberg.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <h2><?php _e('Setup Gutenberg Block', 'post-snippets'); ?></h2> 2 6 -
post-snippets/trunk/views/help/php.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <h2>PHP Code</h2> 2 6 -
post-snippets/trunk/views/help/post.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <h2><?php _e('The Post Editor', 'post-snippets'); ?></h2> 2 6 -
post-snippets/trunk/views/help/restapi.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <h2><?php _e('REST API', 'post-snippets'); ?> (<em><?php _e('for developers', 'post-snippets'); ?></em>)</h2> 2 6 -
post-snippets/trunk/views/help/sidebar.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <p><strong> 2 6 <?php _e('Related:', 'post-snippets'); ?> -
post-snippets/trunk/views/help/usage.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <h2><?php _e('Usage', 'post-snippets'); ?></h2> 2 6 -
post-snippets/trunk/views/jquery_ui_dialog_footer.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 4 1 5 <!-- START: Post Snippets UI Dialog --> 2 6 <?php // Setup the dialog divs ?> -
post-snippets/trunk/views/jquery_ui_dialog_head.php
r3467209 r3480792 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 ?> 1 4 2 5 <!-- START: c and related functions -->
Note: See TracChangeset
for help on using the changeset viewer.