Changeset 2676815
- Timestamp:
- 02/11/2022 02:30:43 AM (4 years ago)
- Location:
- wc-product-subtitle
- Files:
-
- 22 edited
- 1 copied
-
tags/4.6.1 (copied) (copied from wc-product-subtitle/trunk)
-
tags/4.6.1/i18n/wc-product-subtitle.pot (modified) (2 diffs)
-
tags/4.6.1/includes/abstract-display-handler.php (modified) (1 diff)
-
tags/4.6.1/includes/admin/class-order-render.php (modified) (1 diff)
-
tags/4.6.1/includes/admin/product/class-render.php (modified) (1 diff)
-
tags/4.6.1/includes/class-email.php (modified) (1 diff)
-
tags/4.6.1/includes/class-integrations.php (modified) (1 diff)
-
tags/4.6.1/readme.txt (modified) (2 diffs)
-
tags/4.6.1/vendor/autoload.php (modified) (1 diff)
-
tags/4.6.1/vendor/composer/autoload_real.php (modified) (5 diffs)
-
tags/4.6.1/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/4.6.1/wc-product-subtitle.php (modified) (2 diffs)
-
trunk/i18n/wc-product-subtitle.pot (modified) (2 diffs)
-
trunk/includes/abstract-display-handler.php (modified) (1 diff)
-
trunk/includes/admin/class-order-render.php (modified) (1 diff)
-
trunk/includes/admin/product/class-render.php (modified) (1 diff)
-
trunk/includes/class-email.php (modified) (1 diff)
-
trunk/includes/class-integrations.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (5 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/wc-product-subtitle.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-product-subtitle/tags/4.6.1/i18n/wc-product-subtitle.pot
r2676353 r2676815 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Product Subtitle For WooCommerce 4.6 \n"5 "Project-Id-Version: Product Subtitle For WooCommerce 4.6.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-product-subtitle\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2022-02-1 0T18:15:59+05:30\n"12 "POT-Creation-Date: 2022-02-11T07:55:43+05:30\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.2.0\n" -
wc-product-subtitle/tags/4.6.1/includes/abstract-display-handler.php
r2676353 r2676815 64 64 */ 65 65 public function the_subtitle( $pid = '' ) { 66 echo $this->render_subtitle( $pid);66 echo wp_kses_post( $this->render_subtitle( $pid ) ); 67 67 } 68 68 -
wc-product-subtitle/tags/4.6.1/includes/admin/class-order-render.php
r2676353 r2676815 33 33 if ( ! empty( $product_id ) ) { 34 34 $title = __( 'Subtitle:', 'wc-product-subtitle' ); 35 $subtitle = w cps_get_subtitle( $product_id);35 $subtitle = wp_kses_post( wcps_get_subtitle( $product_id ) ); 36 36 if ( ! empty( $subtitle ) ) { 37 37 echo "<div class=\"wc-product-subtitle\" style='color:#888; font-style: italic;font-size: .92em !important;'> <strong>${title}</strong> ${subtitle} </div>"; -
wc-product-subtitle/tags/4.6.1/includes/admin/product/class-render.php
r2676353 r2676815 44 44 switch ( $column ) { 45 45 case 'subtitle': 46 echo w cps_get_subtitle( $post_id);46 echo wp_kses_post( wcps_get_subtitle( $post_id ) ); 47 47 break; 48 48 case 'name': 49 echo '<br/><span style="margin-top:4px;display: inline-block;"><i>' . w cps_get_subtitle( $post_id) . '</i></span>';49 echo '<br/><span style="margin-top:4px;display: inline-block;"><i>' . wp_kses_post( wcps_get_subtitle( $post_id ) ) . '</i></span>'; 50 50 break; 51 51 } -
wc-product-subtitle/tags/4.6.1/includes/class-email.php
r2675393 r2676815 46 46 $subtitle = $option['before_subtitle'] . $this->render_subtitle( $item->get_product_id() ) . $option['after_subtitle']; 47 47 if ( $plain_text ) { 48 echo wp_strip_all_tags( $subtitle );48 echo esc_html( $subtitle ); 49 49 } else { 50 echo $subtitle;50 echo wp_kses_post( $subtitle ); 51 51 } 52 52 } -
wc-product-subtitle/tags/4.6.1/includes/class-integrations.php
r2676353 r2676815 42 42 $subtitle = wcps_get_subtitle( $item['product']->get_id() ); 43 43 if ( ! empty( $subtitle ) ) { 44 echo '<div class="product-subtitle"><small>' . __( 'Subtitle :', 'wc-product-subtitle' ) . ' ' . $subtitle. '</small></div>';44 echo '<div class="product-subtitle"><small>' . __( 'Subtitle :', 'wc-product-subtitle' ) . ' ' . wp_kses_post( $subtitle ) . '</small></div>'; 45 45 } 46 46 } -
wc-product-subtitle/tags/4.6.1/readme.txt
r2676353 r2676815 7 7 WC requires at least: 3.0 8 8 WC tested up to: 6.1.1 9 Stable tag: 4.6 9 Stable tag: 4.6.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 93 93 94 94 == Changelog == 95 = 4.6.1 = 96 * Improved Content Escaping 97 95 98 = 4.6 = 96 99 * Renamed `wp_product_subtitle_placements` to `wcps_subtitle_placement_areas` -
wc-product-subtitle/tags/4.6.1/vendor/autoload.php
r2676353 r2676815 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit fd6cf5bb751756862b0b94d75bdb0ef7::getLoader();7 return ComposerAutoloaderInitb28e7ee26d09c22cc7819220e7d4f415::getLoader(); -
wc-product-subtitle/tags/4.6.1/vendor/composer/autoload_real.php
r2676353 r2676815 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit fd6cf5bb751756862b0b94d75bdb0ef75 class ComposerAutoloaderInitb28e7ee26d09c22cc7819220e7d4f415 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit fd6cf5bb751756862b0b94d75bdb0ef7', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitb28e7ee26d09c22cc7819220e7d4f415', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit fd6cf5bb751756862b0b94d75bdb0ef7', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitb28e7ee26d09c22cc7819220e7d4f415', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require_once __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit fd6cf5bb751756862b0b94d75bdb0ef7::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInitb28e7ee26d09c22cc7819220e7d4f415::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit fd6cf5bb751756862b0b94d75bdb0ef7::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInitb28e7ee26d09c22cc7819220e7d4f415::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire fd6cf5bb751756862b0b94d75bdb0ef7($fileIdentifier, $file);59 composerRequireb28e7ee26d09c22cc7819220e7d4f415($fileIdentifier, $file); 60 60 } 61 61 … … 64 64 } 65 65 66 function composerRequire fd6cf5bb751756862b0b94d75bdb0ef7($fileIdentifier, $file)66 function composerRequireb28e7ee26d09c22cc7819220e7d4f415($fileIdentifier, $file) 67 67 { 68 68 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
wc-product-subtitle/tags/4.6.1/vendor/composer/autoload_static.php
r2676353 r2676815 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit fd6cf5bb751756862b0b94d75bdb0ef77 class ComposerStaticInitb28e7ee26d09c22cc7819220e7d4f415 8 8 { 9 9 public static $files = array ( … … 68 68 { 69 69 return \Closure::bind(function () use ($loader) { 70 $loader->prefixLengthsPsr4 = ComposerStaticInit fd6cf5bb751756862b0b94d75bdb0ef7::$prefixLengthsPsr4;71 $loader->prefixDirsPsr4 = ComposerStaticInit fd6cf5bb751756862b0b94d75bdb0ef7::$prefixDirsPsr4;72 $loader->classMap = ComposerStaticInit fd6cf5bb751756862b0b94d75bdb0ef7::$classMap;70 $loader->prefixLengthsPsr4 = ComposerStaticInitb28e7ee26d09c22cc7819220e7d4f415::$prefixLengthsPsr4; 71 $loader->prefixDirsPsr4 = ComposerStaticInitb28e7ee26d09c22cc7819220e7d4f415::$prefixDirsPsr4; 72 $loader->classMap = ComposerStaticInitb28e7ee26d09c22cc7819220e7d4f415::$classMap; 73 73 74 74 }, null, ClassLoader::class); -
wc-product-subtitle/tags/4.6.1/wc-product-subtitle.php
r2676353 r2676815 4 4 * Plugin URI: https://wordpress.org/plugins/wc-product-subtitle 5 5 * Description: Create Custom Product Subtitle For WooCommerce Products. 6 * Version: 4.6 6 * Version: 4.6.1 7 7 * Author: Varun Sridharan 8 8 * Author URI: http://varunsridharan.in … … 17 17 use Varunsridharan\WordPress\Plugin_Version_Management; 18 18 19 defined( 'WCPS_VERSION' ) || define( 'WCPS_VERSION', '4.6 ' );19 defined( 'WCPS_VERSION' ) || define( 'WCPS_VERSION', '4.6.1' ); 20 20 defined( 'WCPS_FILE' ) || define( 'WCPS_FILE', __FILE__ ); 21 21 defined( 'WCPS_NAME' ) || define( 'WCPS_NAME', __( 'Product Subtitle For WooCommerce', 'wc-product-subtitle' ) ); -
wc-product-subtitle/trunk/i18n/wc-product-subtitle.pot
r2676353 r2676815 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Product Subtitle For WooCommerce 4.6 \n"5 "Project-Id-Version: Product Subtitle For WooCommerce 4.6.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-product-subtitle\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2022-02-1 0T18:15:59+05:30\n"12 "POT-Creation-Date: 2022-02-11T07:55:43+05:30\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.2.0\n" -
wc-product-subtitle/trunk/includes/abstract-display-handler.php
r2676353 r2676815 64 64 */ 65 65 public function the_subtitle( $pid = '' ) { 66 echo $this->render_subtitle( $pid);66 echo wp_kses_post( $this->render_subtitle( $pid ) ); 67 67 } 68 68 -
wc-product-subtitle/trunk/includes/admin/class-order-render.php
r2676353 r2676815 33 33 if ( ! empty( $product_id ) ) { 34 34 $title = __( 'Subtitle:', 'wc-product-subtitle' ); 35 $subtitle = w cps_get_subtitle( $product_id);35 $subtitle = wp_kses_post( wcps_get_subtitle( $product_id ) ); 36 36 if ( ! empty( $subtitle ) ) { 37 37 echo "<div class=\"wc-product-subtitle\" style='color:#888; font-style: italic;font-size: .92em !important;'> <strong>${title}</strong> ${subtitle} </div>"; -
wc-product-subtitle/trunk/includes/admin/product/class-render.php
r2676353 r2676815 44 44 switch ( $column ) { 45 45 case 'subtitle': 46 echo w cps_get_subtitle( $post_id);