Changeset 2676353
- Timestamp:
- 02/10/2022 12:52:58 PM (4 years ago)
- Location:
- wc-product-subtitle
- Files:
-
- 28 edited
- 1 copied
-
tags/4.6 (copied) (copied from wc-product-subtitle/trunk)
-
tags/4.6/i18n/wc-product-subtitle.pot (modified) (2 diffs)
-
tags/4.6/includes/abstract-display-handler.php (modified) (1 diff)
-
tags/4.6/includes/admin/class-order-render.php (modified) (1 diff)
-
tags/4.6/includes/admin/class-settings.php (modified) (7 diffs)
-
tags/4.6/includes/admin/product/class-field.php (modified) (2 diffs)
-
tags/4.6/includes/admin/product/class-render.php (modified) (1 diff)
-
tags/4.6/includes/class-integrations.php (modified) (1 diff)
-
tags/4.6/includes/class-tag-handler.php (modified) (1 diff)
-
tags/4.6/includes/functions.php (modified) (8 diffs)
-
tags/4.6/readme.txt (modified) (2 diffs)
-
tags/4.6/vendor/autoload.php (modified) (1 diff)
-
tags/4.6/vendor/composer/autoload_real.php (modified) (5 diffs)
-
tags/4.6/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/4.6/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/class-settings.php (modified) (7 diffs)
-
trunk/includes/admin/product/class-field.php (modified) (2 diffs)
-
trunk/includes/admin/product/class-render.php (modified) (1 diff)
-
trunk/includes/class-integrations.php (modified) (1 diff)
-
trunk/includes/class-tag-handler.php (modified) (1 diff)
-
trunk/includes/functions.php (modified) (8 diffs)
-
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/i18n/wc-product-subtitle.pot
r2675393 r2676353 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Product Subtitle For WooCommerce 4. 5.3\n"5 "Project-Id-Version: Product Subtitle For WooCommerce 4.6\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- 09T07:31:18+05:30\n"12 "POT-Creation-Date: 2022-02-10T18:15:59+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/includes/abstract-display-handler.php
r2321403 r2676353 79 79 $pid = $post->ID; 80 80 } 81 return $this->tag_handler->print_subtitle( get_product_subtitle( $pid ), $this->get_element(), $pid );81 return $this->tag_handler->print_subtitle( wcps_get_subtitle( $pid ), $this->get_element(), $pid ); 82 82 } 83 83 } -
wc-product-subtitle/tags/4.6/includes/admin/class-order-render.php
r2321403 r2676353 33 33 if ( ! empty( $product_id ) ) { 34 34 $title = __( 'Subtitle:', 'wc-product-subtitle' ); 35 $subtitle = get_product_subtitle( $product_id );35 $subtitle = 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/includes/admin/class-settings.php
r2321403 r2676353 42 42 $this->template['element'] = wpo_field( 'select', 'element', __( 'Element Tag', 'wc-product-subtitle' ), array( 43 43 'style' => 'width:10%', 44 'options' => wc _product_subtitle_tags(),44 'options' => wcps_subtitle_tags(), 45 45 'desc_field' => __( 'Which Type of html tag you need to have', 'wc-product-subtitle' ), 46 46 'select2' => true, … … 155 155 $fieldset = $container->set_group( 'order_view_page' ); 156 156 $fieldset->add_field( clone( $this->template['position'] ) ) 157 ->options( w p_product_subtitle_placements( 'order_view' ) );157 ->options( wcps_subtitle_placement_areas( 'order_view' ) ); 158 158 $fieldset->add_field( clone( $this->template['placement'] ) ); 159 159 $fieldset->add_field( clone( $this->template['element'] ) ); … … 177 177 $fieldset = $container->set_group( 'shop_page' ); 178 178 $fieldset->add_field( clone( $this->template['position'] ) ) 179 ->options( w p_product_subtitle_placements( 'shop' ) );179 ->options( wcps_subtitle_placement_areas( 'shop' ) ); 180 180 $fieldset->add_field( clone( $this->template['placement'] ) ); 181 181 $fieldset->add_field( clone( $this->template['element'] ) ); … … 198 198 $fieldset = $container->set_group( 'single_product' ); 199 199 $fieldset->add_field( clone( $this->template['position'] ) ) 200 ->options( w p_product_subtitle_placements( 'single' ) );200 ->options( wcps_subtitle_placement_areas( 'single' ) ); 201 201 $fieldset->add_field( clone( $this->template['placement'] ) ); 202 202 $fieldset->add_field( clone( $this->template['element'] ) ); … … 222 222 $container->subheading( $title . ' ' . __( 'Page Subtitle Configuration', 'wc-product-subtitle' ) ); 223 223 $container->add_field( clone( $this->template['position'] ) ) 224 ->options( w p_product_subtitle_placements( 'cart' ) );224 ->options( wcps_subtitle_placement_areas( 'cart' ) ); 225 225 $container->add_field( clone( $this->template['placement'] ) ); 226 226 $container->add_field( clone( $this->template['element'] ) ); … … 245 245 $fieldset = $container->set_group( 'mini_cart' ); 246 246 $fieldset->add( clone $this->template['position'] ) 247 ->options( w p_product_subtitle_placements( 'mini_cart' ) );247 ->options( wcps_subtitle_placement_areas( 'mini_cart' ) ); 248 248 249 249 $fieldset->add( clone $this->template['placement'] ); … … 271 271 $container->subheading( __( 'Email Configuration', 'wc-product-subtitle' ) ); 272 272 $fieldset = $container->set_group( 'email' ); 273 $fieldset->add( clone $this->template['position'] )->options( w p_product_subtitle_placements( 'email' ) );273 $fieldset->add( clone $this->template['position'] )->options( wcps_subtitle_placement_areas( 'email' ) ); 274 274 $fieldset->add( clone $this->template['placement'] ); 275 275 $fieldset->add( clone $this->template['element'] ); -
wc-product-subtitle/tags/4.6/includes/admin/product/class-field.php
r2321403 r2676353 38 38 } 39 39 if ( isset( $_POST['product_subtitle'] ) ) { 40 update_product_subtitle( $post_id, wp_kses_post( $_POST['product_subtitle'] ) );40 wcps_update_subtitle( $post_id, wp_kses_post( $_POST['product_subtitle'] ) ); 41 41 } 42 42 } … … 50 50 if ( 'product' === $post->post_type ) { 51 51 global $post; 52 $value = get_product_subtitle( $post->ID );52 $value = wcps_get_subtitle( $post->ID ); 53 53 54 54 if ( wc_ps_option( 'admin_wp_editor' ) ) { -
wc-product-subtitle/tags/4.6/includes/admin/product/class-render.php
r2321403 r2676353 44 44 switch ( $column ) { 45 45 case 'subtitle': 46 the_product_subtitle( $post_id );46 echo wcps_get_subtitle( $post_id ); 47 47 break; 48 48 case 'name': 49 echo '<br/><span style="margin-top:4px;display: inline-block;"><i>' . get_product_subtitle( $post_id ) . '</i></span>';49 echo '<br/><span style="margin-top:4px;display: inline-block;"><i>' . wcps_get_subtitle( $post_id ) . '</i></span>'; 50 50 break; 51 51 } -
wc-product-subtitle/tags/4.6/includes/class-integrations.php
r2321403 r2676353 40 40 } 41 41 42 $subtitle = get_product_subtitle( $item['product']->get_id() );42 $subtitle = wcps_get_subtitle( $item['product']->get_id() ); 43 43 if ( ! empty( $subtitle ) ) { 44 44 echo '<div class="product-subtitle"><small>' . __( 'Subtitle :', 'wc-product-subtitle' ) . ' ' . $subtitle . '</small></div>'; -
wc-product-subtitle/tags/4.6/includes/class-tag-handler.php
r2675393 r2676353 42 42 } 43 43 44 if ( in_array( $tag, array_keys( wc _product_subtitle_default_tags() ), true ) ) {44 if ( in_array( $tag, array_keys( wcps_subtitle_default_tags() ), true ) ) { 45 45 $return = $this->get_subtitle_in_element( $tag, $title, $pid ); 46 46 } else { -
wc-product-subtitle/tags/4.6/includes/functions.php
r2675393 r2676353 17 17 } 18 18 19 if ( ! function_exists( 'w p_product_subtitle_placements' ) ) {19 if ( ! function_exists( 'wcps_subtitle_placement_areas' ) ) { 20 20 /** 21 21 * Returns A List of places where subtitle's can be display based on the page. … … 25 25 * @return mixed|void 26 26 */ 27 function w p_product_subtitle_placements( $place = false ) {27 function wcps_subtitle_placement_areas( $place = false ) { 28 28 $placements = array( 29 29 '' => __( 'Disable/ Use Shortcode', 'wc-product-subtitle' ), … … 59 59 } 60 60 61 if ( ! function_exists( 'wc _product_subtitle_default_tags' ) ) {61 if ( ! function_exists( 'wcps_subtitle_default_tags' ) ) { 62 62 /** 63 63 * Returns Default Tags. … … 65 65 * @return array 66 66 */ 67 function wc _product_subtitle_default_tags() {67 function wcps_subtitle_default_tags() { 68 68 return array( 69 69 'i' => '<i>', … … 84 84 } 85 85 86 if ( ! function_exists( 'wc _product_subtitle_tags' ) ) {86 if ( ! function_exists( 'wcps_subtitle_tags' ) ) { 87 87 /** 88 88 * Returns Avaiable Tag Options. … … 90 90 * @return mixed|void 91 91 */ 92 function wc _product_subtitle_tags() {93 return apply_filters( 'wc_product_subtitle_tags', wc _product_subtitle_default_tags() );92 function wcps_subtitle_tags() { 93 return apply_filters( 'wc_product_subtitle_tags', wcps_subtitle_default_tags() ); 94 94 } 95 95 } 96 96 97 if ( ! function_exists( ' update_product_subttile' ) ) {97 if ( ! function_exists( 'wcps_update_subtitle' ) ) { 98 98 /** 99 99 * Updates Post Meta In DB. … … 104 104 * @return bool|int 105 105 */ 106 function update_product_subtitle( $post_id, $subtitle ) {106 function wcps_update_subtitle( $post_id, $subtitle ) { 107 107 return update_post_meta( $post_id, 'wc_ps_subtitle', $subtitle ); 108 108 } 109 109 } 110 110 111 if ( ! function_exists( ' get_product_subtitle' ) ) {111 if ( ! function_exists( 'wcps_get_subtitle' ) ) { 112 112 /** 113 113 * Gets From DB. … … 117 117 * @return mixed 118 118 */ 119 function get_product_subtitle( $id ) {119 function wcps_get_subtitle( $id ) { 120 120 return wp_kses( get_post_meta( $id, 'wc_ps_subtitle', true ), 'post' ); 121 121 } 122 122 } 123 124 if ( ! function_exists( 'the_product_subtitle' ) ) {125 /**126 * Echos Subtitle's127 *128 * @param $id129 */130 function the_product_subtitle( $id ) {131 echo get_product_subtitle( $id );132 }133 } -
wc-product-subtitle/tags/4.6/readme.txt
r2675393 r2676353 7 7 WC requires at least: 3.0 8 8 WC tested up to: 6.1.1 9 Stable tag: 4. 5.39 Stable tag: 4.6 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 = 96 * Renamed `wp_product_subtitle_placements` to `wcps_subtitle_placement_areas` 97 * Renamed `wc_product_subtitle_default_tags` to `wcps_subtitle_default_tags` 98 * Renamed `wc_product_subtitle_tags` to `wcps_subtitle_tags` 99 * Renamed `update_product_subttile` to `wcps_update_subtitle` 100 * Renamed `get_product_subtitle` to `wcps_get_subtitle` 101 * Removed `the_product_subtitle` 102 95 103 = 4.5.3 = 96 104 * Fixed All Security Issues Reported By WordPress.org Team -
wc-product-subtitle/tags/4.6/vendor/autoload.php
r2675393 r2676353 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit cab18722a25b5fc1d11a6fda6cbb5542::getLoader();7 return ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7::getLoader(); -
wc-product-subtitle/tags/4.6/vendor/composer/autoload_real.php
r2675393 r2676353 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit cab18722a25b5fc1d11a6fda6cbb55425 class ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit cab18722a25b5fc1d11a6fda6cbb5542', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit cab18722a25b5fc1d11a6fda6cbb5542', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7', '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 cab18722a25b5fc1d11a6fda6cbb5542::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit cab18722a25b5fc1d11a6fda6cbb5542::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire cab18722a25b5fc1d11a6fda6cbb5542($fileIdentifier, $file);59 composerRequirefd6cf5bb751756862b0b94d75bdb0ef7($fileIdentifier, $file); 60 60 } 61 61 … … 64 64 } 65 65 66 function composerRequire cab18722a25b5fc1d11a6fda6cbb5542($fileIdentifier, $file)66 function composerRequirefd6cf5bb751756862b0b94d75bdb0ef7($fileIdentifier, $file) 67 67 { 68 68 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
wc-product-subtitle/tags/4.6/vendor/composer/autoload_static.php
r2675393 r2676353 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit cab18722a25b5fc1d11a6fda6cbb55427 class ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7 8 8 { 9 9 public static $files = array ( … … 68 68 { 69 69 return \Closure::bind(function () use ($loader) { 70 $loader->prefixLengthsPsr4 = ComposerStaticInit cab18722a25b5fc1d11a6fda6cbb5542::$prefixLengthsPsr4;71 $loader->prefixDirsPsr4 = ComposerStaticInit cab18722a25b5fc1d11a6fda6cbb5542::$prefixDirsPsr4;72 $loader->classMap = ComposerStaticInit cab18722a25b5fc1d11a6fda6cbb5542::$classMap;70 $loader->prefixLengthsPsr4 = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$prefixLengthsPsr4; 71 $loader->prefixDirsPsr4 = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$prefixDirsPsr4; 72 $loader->classMap = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$classMap; 73 73 74 74 }, null, ClassLoader::class); -
wc-product-subtitle/tags/4.6/wc-product-subtitle.php
r2675393 r2676353 4 4 * Plugin URI: https://wordpress.org/plugins/wc-product-subtitle 5 5 * Description: Create Custom Product Subtitle For WooCommerce Products. 6 * Version: 4. 5.36 * Version: 4.6 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. 5.2' );19 defined( 'WCPS_VERSION' ) || define( 'WCPS_VERSION', '4.6' ); 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
r2675393 r2676353 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Product Subtitle For WooCommerce 4. 5.3\n"5 "Project-Id-Version: Product Subtitle For WooCommerce 4.6\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- 09T07:31:18+05:30\n"12 "POT-Creation-Date: 2022-02-10T18:15:59+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
r2321403 r2676353 79 79 $pid = $post->ID; 80 80 } 81 return $this->tag_handler->print_subtitle( get_product_subtitle( $pid ), $this->get_element(), $pid );81 return $this->tag_handler->print_subtitle( wcps_get_subtitle( $pid ), $this->get_element(), $pid ); 82 82 } 83 83 } -
wc-product-subtitle/trunk/includes/admin/class-order-render.php
r2321403 r2676353 33 33 if ( ! empty( $product_id ) ) { 34 34 $title = __( 'Subtitle:', 'wc-product-subtitle' ); 35 $subtitle = get_product_subtitle( $product_id );35 $subtitle = 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/class-settings.php
r2321403 r2676353 42 42 $this->template['element'] = wpo_field( 'select', 'element', __( 'Element Tag', 'wc-product-subtitle' ), array( 43 43 'style' => 'width:10%', 44 'options' => wc _product_subtitle_tags(),44 'options' => wcps_subtitle_tags(), 45 45 'desc_field' => __( 'Which Type of html tag you need to have', 'wc-product-subtitle' ), 46 46 'select2' => true, … … 155 155 $fieldset = $container->set_group( 'order_view_page' ); 156 156 $fieldset->add_field( clone( $this->template['position'] ) ) 157 ->options( w p_product_subtitle_placements( 'order_view' ) );157 ->options( wcps_subtitle_placement_areas( 'order_view' ) ); 158 158 $fieldset->add_field( clone( $this->template['placement'] ) ); 159 159 $fieldset->add_field( clone( $this->template['element'] ) ); … … 177 177 $fieldset = $container->set_group( 'shop_page' ); 178 178 $fieldset->add_field( clone( $this->template['position'] ) ) 179 ->options( w p_product_subtitle_placements( 'shop' ) );179 ->options( wcps_subtitle_placement_areas( 'shop' ) ); 180 180 $fieldset->add_field( clone( $this->template['placement'] ) ); 181 181 $fieldset->add_field( clone( $this->template['element'] ) ); … … 198 198 $fieldset = $container->set_group( 'single_product' ); 199 199 $fieldset->add_field( clone( $this->template['position'] ) ) 200 ->options( w p_product_subtitle_placements( 'single' ) );200 ->options( wcps_subtitle_placement_areas( 'single' ) ); 201 201 $fieldset->add_field( clone( $this->template['placement'] ) ); 202 202 $fieldset->add_field( clone( $this->template['element'] ) ); … … 222 222 $container->subheading( $title . ' ' . __( 'Page Subtitle Configuration', 'wc-product-subtitle' ) ); 223 223 $container->add_field( clone( $this->template['position'] ) ) 224 ->options( w p_product_subtitle_placements( 'cart' ) );224 ->options( wcps_subtitle_placement_areas( 'cart' ) ); 225 225 $container->add_field( clone( $this->template['placement'] ) ); 226 226 $container->add_field( clone( $this->template['element'] ) ); … … 245 245 $fieldset = $container->set_group( 'mini_cart' ); 246 246 $fieldset->add( clone $this->template['position'] ) 247 ->options( w p_product_subtitle_placements( 'mini_cart' ) );247 ->options( wcps_subtitle_placement_areas( 'mini_cart' ) ); 248 248 249 249 $fieldset->add( clone $this->template['placement'] ); … … 271 271 $container->subheading( __( 'Email Configuration', 'wc-product-subtitle' ) ); 272 272 $fieldset = $container->set_group( 'email' ); 273 $fieldset->add( clone $this->template['position'] )->options( w p_product_subtitle_placements( 'email' ) );273 $fieldset->add( clone $this->template['position'] )->options( wcps_subtitle_placement_areas( 'email' ) ); 274 274 $fieldset->add( clone $this->template['placement'] ); 275 275 $fieldset->add( clone $this->template['element'] ); -
wc-product-subtitle/trunk/includes/admin/product/class-field.php
r2321403 r2676353 38 38 } 39 39 if ( isset( $_POST['product_subtitle'] ) ) { 40 update_product_subtitle( $post_id, wp_kses_post( $_POST['product_subtitle'] ) );40 wcps_update_subtitle( $post_id, wp_kses_post( $_POST['product_subtitle'] ) ); 41 41 } 42 42 } … … 50 50 if ( 'product' === $post->post_type ) { 51 51 global $post; 52 $value = get_product_subtitle( $post->ID );52 $value = wcps_get_subtitle( $post->ID ); 53 53 54 54 if ( wc_ps_option( 'admin_wp_editor' ) ) { -
wc-product-subtitle/trunk/includes/admin/product/class-render.php
r2321403 r2676353 44 44 switch ( $column ) { 45 45 case 'subtitle': 46 the_product_subtitle( $post_id );46 echo wcps_get_subtitle( $post_id ); 47 47 break; 48 48 case 'name': 49 echo '<br/><span style="margin-top:4px;display: inline-block;"><i>' . get_product_subtitle( $post_id ) . '</i></span>';49 echo '<br/><span style="margin-top:4px;display: inline-block;"><i>' . wcps_get_subtitle( $post_id ) . '</i></span>'; 50 50 break; 51 51 } -
wc-product-subtitle/trunk/includes/class-integrations.php
r2321403 r2676353 40 40 } 41 41 42 $subtitle = get_product_subtitle( $item['product']->get_id() );42 $subtitle = wcps_get_subtitle( $item['product']->get_id() ); 43 43 if ( ! empty( $subtitle ) ) { 44 44 echo '<div class="product-subtitle"><small>' . __( 'Subtitle :', 'wc-product-subtitle' ) . ' ' . $subtitle . '</small></div>'; -
wc-product-subtitle/trunk/includes/class-tag-handler.php
r2675393 r2676353 42 42 } 43 43 44 if ( in_array( $tag, array_keys( wc _product_subtitle_default_tags() ), true ) ) {44 if ( in_array( $tag, array_keys( wcps_subtitle_default_tags() ), true ) ) { 45 45 $return = $this->get_subtitle_in_element( $tag, $title, $pid ); 46 46 } else { -
wc-product-subtitle/trunk/includes/functions.php
r2675393 r2676353 17 17 } 18 18 19 if ( ! function_exists( 'w p_product_subtitle_placements' ) ) {19 if ( ! function_exists( 'wcps_subtitle_placement_areas' ) ) { 20 20 /** 21 21 * Returns A List of places where subtitle's can be display based on the page. … … 25 25 * @return mixed|void 26 26 */ 27 function w p_product_subtitle_placements( $place = false ) {27 function wcps_subtitle_placement_areas( $place = false ) { 28 28 $placements = array( 29 29 '' => __( 'Disable/ Use Shortcode', 'wc-product-subtitle' ), … … 59 59 } 60 60 61 if ( ! function_exists( 'wc _product_subtitle_default_tags' ) ) {61 if ( ! function_exists( 'wcps_subtitle_default_tags' ) ) { 62 62 /** 63 63 * Returns Default Tags. … … 65 65 * @return array 66 66 */ 67 function wc _product_subtitle_default_tags() {67 function wcps_subtitle_default_tags() { 68 68 return array( 69 69 'i' => '<i>', … … 84 84 } 85 85 86 if ( ! function_exists( 'wc _product_subtitle_tags' ) ) {86 if ( ! function_exists( 'wcps_subtitle_tags' ) ) { 87 87 /** 88 88 * Returns Avaiable Tag Options. … … 90 90 * @return mixed|void 91 91 */ 92 function wc _product_subtitle_tags() {93 return apply_filters( 'wc_product_subtitle_tags', wc _product_subtitle_default_tags() );92 function wcps_subtitle_tags() { 93 return apply_filters( 'wc_product_subtitle_tags', wcps_subtitle_default_tags() ); 94 94 } 95 95 } 96 96 97 if ( ! function_exists( ' update_product_subttile' ) ) {97 if ( ! function_exists( 'wcps_update_subtitle' ) ) { 98 98 /** 99 99 * Updates Post Meta In DB. … … 104 104 * @return bool|int 105 105 */ 106 function update_product_subtitle( $post_id, $subtitle ) {106 function wcps_update_subtitle( $post_id, $subtitle ) { 107 107 return update_post_meta( $post_id, 'wc_ps_subtitle', $subtitle ); 108 108 } 109 109 } 110 110 111 if ( ! function_exists( ' get_product_subtitle' ) ) {111 if ( ! function_exists( 'wcps_get_subtitle' ) ) { 112 112 /** 113 113 * Gets From DB. … … 117 117 * @return mixed 118 118 */ 119 function get_product_subtitle( $id ) {119 function wcps_get_subtitle( $id ) { 120 120 return wp_kses( get_post_meta( $id, 'wc_ps_subtitle', true ), 'post' ); 121 121 } 122 122 } 123 124 if ( ! function_exists( 'the_product_subtitle' ) ) {125 /**126 * Echos Subtitle's127 *128 * @param $id129 */130 function the_product_subtitle( $id ) {131 echo get_product_subtitle( $id );132 }133 } -
wc-product-subtitle/trunk/readme.txt
r2675393 r2676353 7 7 WC requires at least: 3.0 8 8 WC tested up to: 6.1.1 9 Stable tag: 4. 5.39 Stable tag: 4.6 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 = 96 * Renamed `wp_product_subtitle_placements` to `wcps_subtitle_placement_areas` 97 * Renamed `wc_product_subtitle_default_tags` to `wcps_subtitle_default_tags` 98 * Renamed `wc_product_subtitle_tags` to `wcps_subtitle_tags` 99 * Renamed `update_product_subttile` to `wcps_update_subtitle` 100 * Renamed `get_product_subtitle` to `wcps_get_subtitle` 101 * Removed `the_product_subtitle` 102 95 103 = 4.5.3 = 96 104 * Fixed All Security Issues Reported By WordPress.org Team -
wc-product-subtitle/trunk/vendor/autoload.php
r2675393 r2676353 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit cab18722a25b5fc1d11a6fda6cbb5542::getLoader();7 return ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7::getLoader(); -
wc-product-subtitle/trunk/vendor/composer/autoload_real.php
r2675393 r2676353 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit cab18722a25b5fc1d11a6fda6cbb55425 class ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit cab18722a25b5fc1d11a6fda6cbb5542', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit cab18722a25b5fc1d11a6fda6cbb5542', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7', '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 cab18722a25b5fc1d11a6fda6cbb5542::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit cab18722a25b5fc1d11a6fda6cbb5542::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire cab18722a25b5fc1d11a6fda6cbb5542($fileIdentifier, $file);59 composerRequirefd6cf5bb751756862b0b94d75bdb0ef7($fileIdentifier, $file); 60 60 } 61 61 … … 64 64 } 65 65 66 function composerRequire cab18722a25b5fc1d11a6fda6cbb5542($fileIdentifier, $file)66 function composerRequirefd6cf5bb751756862b0b94d75bdb0ef7($fileIdentifier, $file) 67 67 { 68 68 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
wc-product-subtitle/trunk/vendor/composer/autoload_static.php
r2675393 r2676353 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit cab18722a25b5fc1d11a6fda6cbb55427 class ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7 8 8 { 9 9 public static $files = array ( … … 68 68 { 69 69 return \Closure::bind(function () use ($loader) { 70 $loader->prefixLengthsPsr4 = ComposerStaticInit cab18722a25b5fc1d11a6fda6cbb5542::$prefixLengthsPsr4;71 $loader->prefixDirsPsr4 = ComposerStaticInit cab18722a25b5fc1d11a6fda6cbb5542::$prefixDirsPsr4;72 $loader->classMap = ComposerStaticInit cab18722a25b5fc1d11a6fda6cbb5542::$classMap;70 $loader->prefixLengthsPsr4 = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$prefixLengthsPsr4; 71 $loader->prefixDirsPsr4 = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$prefixDirsPsr4; 72 $loader->classMap = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$classMap; 73 73 74 74 }, null, ClassLoader::class); -
wc-product-subtitle/trunk/wc-product-subtitle.php
r2675393 r2676353 4 4 * Plugin URI: https://wordpress.org/plugins/wc-product-subtitle 5 5 * Description: Create Custom Product Subtitle For WooCommerce Products. 6 * Version: 4. 5.36 * Version: 4.6 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. 5.2' );19 defined( 'WCPS_VERSION' ) || define( 'WCPS_VERSION', '4.6' ); 20 20 defined( 'WCPS_FILE' ) || define( 'WCPS_FILE', __FILE__ ); 21 21 defined( 'WCPS_NAME' ) || define( 'WCPS_NAME', __( 'Product Subtitle For WooCommerce', 'wc-product-subtitle' ) );
Note: See TracChangeset
for help on using the changeset viewer.