Plugin Directory

Changeset 2676353


Ignore:
Timestamp:
02/10/2022 12:52:58 PM (4 years ago)
Author:
varunms
Message:

Update to version 4.6 from GitHub

Location:
wc-product-subtitle
Files:
28 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wc-product-subtitle/tags/4.6/i18n/wc-product-subtitle.pot

    r2675393 r2676353  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Product Subtitle For WooCommerce 4.5.3\n"
     5"Project-Id-Version: Product Subtitle For WooCommerce 4.6\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-product-subtitle\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.2.0\n"
  • wc-product-subtitle/tags/4.6/includes/abstract-display-handler.php

    r2321403 r2676353  
    7979            $pid = $post->ID;
    8080        }
    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 );
    8282    }
    8383}
  • wc-product-subtitle/tags/4.6/includes/admin/class-order-render.php

    r2321403 r2676353  
    3333        if ( ! empty( $product_id ) ) {
    3434            $title    = __( 'Subtitle:', 'wc-product-subtitle' );
    35             $subtitle = get_product_subtitle( $product_id );
     35            $subtitle = wcps_get_subtitle( $product_id );
    3636            if ( ! empty( $subtitle ) ) {
    3737                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  
    4242            $this->template['element']  = wpo_field( 'select', 'element', __( 'Element Tag', 'wc-product-subtitle' ), array(
    4343                'style'      => 'width:10%',
    44                 'options'    => wc_product_subtitle_tags(),
     44                'options'    => wcps_subtitle_tags(),
    4545                'desc_field' => __( 'Which Type of html tag you need to have', 'wc-product-subtitle' ),
    4646                'select2'    => true,
     
    155155            $fieldset = $container->set_group( 'order_view_page' );
    156156            $fieldset->add_field( clone( $this->template['position'] ) )
    157                 ->options( wp_product_subtitle_placements( 'order_view' ) );
     157                ->options( wcps_subtitle_placement_areas( 'order_view' ) );
    158158            $fieldset->add_field( clone( $this->template['placement'] ) );
    159159            $fieldset->add_field( clone( $this->template['element'] ) );
     
    177177            $fieldset = $container->set_group( 'shop_page' );
    178178            $fieldset->add_field( clone( $this->template['position'] ) )
    179                 ->options( wp_product_subtitle_placements( 'shop' ) );
     179                ->options( wcps_subtitle_placement_areas( 'shop' ) );
    180180            $fieldset->add_field( clone( $this->template['placement'] ) );
    181181            $fieldset->add_field( clone( $this->template['element'] ) );
     
    198198            $fieldset = $container->set_group( 'single_product' );
    199199            $fieldset->add_field( clone( $this->template['position'] ) )
    200                 ->options( wp_product_subtitle_placements( 'single' ) );
     200                ->options( wcps_subtitle_placement_areas( 'single' ) );
    201201            $fieldset->add_field( clone( $this->template['placement'] ) );
    202202            $fieldset->add_field( clone( $this->template['element'] ) );
     
    222222            $container->subheading( $title . ' ' . __( 'Page Subtitle Configuration', 'wc-product-subtitle' ) );
    223223            $container->add_field( clone( $this->template['position'] ) )
    224                 ->options( wp_product_subtitle_placements( 'cart' ) );
     224                ->options( wcps_subtitle_placement_areas( 'cart' ) );
    225225            $container->add_field( clone( $this->template['placement'] ) );
    226226            $container->add_field( clone( $this->template['element'] ) );
     
    245245            $fieldset = $container->set_group( 'mini_cart' );
    246246            $fieldset->add( clone $this->template['position'] )
    247                 ->options( wp_product_subtitle_placements( 'mini_cart' ) );
     247                ->options( wcps_subtitle_placement_areas( 'mini_cart' ) );
    248248
    249249            $fieldset->add( clone $this->template['placement'] );
     
    271271            $container->subheading( __( 'Email Configuration', 'wc-product-subtitle' ) );
    272272            $fieldset = $container->set_group( 'email' );
    273             $fieldset->add( clone $this->template['position'] )->options( wp_product_subtitle_placements( 'email' ) );
     273            $fieldset->add( clone $this->template['position'] )->options( wcps_subtitle_placement_areas( 'email' ) );
    274274            $fieldset->add( clone $this->template['placement'] );
    275275            $fieldset->add( clone $this->template['element'] );
  • wc-product-subtitle/tags/4.6/includes/admin/product/class-field.php

    r2321403 r2676353  
    3838        }
    3939        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'] ) );
    4141        }
    4242    }
     
    5050        if ( 'product' === $post->post_type ) {
    5151            global $post;
    52             $value = get_product_subtitle( $post->ID );
     52            $value = wcps_get_subtitle( $post->ID );
    5353
    5454            if ( wc_ps_option( 'admin_wp_editor' ) ) {
  • wc-product-subtitle/tags/4.6/includes/admin/product/class-render.php

    r2321403 r2676353  
    4444        switch ( $column ) {
    4545            case 'subtitle':
    46                 the_product_subtitle( $post_id );
     46                echo wcps_get_subtitle( $post_id );
    4747                break;
    4848            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>';
    5050                break;
    5151        }
  • wc-product-subtitle/tags/4.6/includes/class-integrations.php

    r2321403 r2676353  
    4040        }
    4141
    42         $subtitle = get_product_subtitle( $item['product']->get_id() );
     42        $subtitle = wcps_get_subtitle( $item['product']->get_id() );
    4343        if ( ! empty( $subtitle ) ) {
    4444            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  
    4242        }
    4343
    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 ) ) {
    4545            $return = $this->get_subtitle_in_element( $tag, $title, $pid );
    4646        } else {
  • wc-product-subtitle/tags/4.6/includes/functions.php

    r2675393 r2676353  
    1717}
    1818
    19 if ( ! function_exists( 'wp_product_subtitle_placements' ) ) {
     19if ( ! function_exists( 'wcps_subtitle_placement_areas' ) ) {
    2020    /**
    2121     * Returns A List of places where subtitle's can be display based on the page.
     
    2525     * @return mixed|void
    2626     */
    27     function wp_product_subtitle_placements( $place = false ) {
     27    function wcps_subtitle_placement_areas( $place = false ) {
    2828        $placements = array(
    2929            ''      => __( 'Disable/ Use Shortcode', 'wc-product-subtitle' ),
     
    5959}
    6060
    61 if ( ! function_exists( 'wc_product_subtitle_default_tags' ) ) {
     61if ( ! function_exists( 'wcps_subtitle_default_tags' ) ) {
    6262    /**
    6363     * Returns Default Tags.
     
    6565     * @return array
    6666     */
    67     function wc_product_subtitle_default_tags() {
     67    function wcps_subtitle_default_tags() {
    6868        return array(
    6969            'i'      => '&#x3C;i&#x3E;',
     
    8484}
    8585
    86 if ( ! function_exists( 'wc_product_subtitle_tags' ) ) {
     86if ( ! function_exists( 'wcps_subtitle_tags' ) ) {
    8787    /**
    8888     * Returns Avaiable Tag Options.
     
    9090     * @return mixed|void
    9191     */
    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() );
    9494    }
    9595}
    9696
    97 if ( ! function_exists( 'update_product_subttile' ) ) {
     97if ( ! function_exists( 'wcps_update_subtitle' ) ) {
    9898    /**
    9999     * Updates Post Meta In DB.
     
    104104     * @return bool|int
    105105     */
    106     function update_product_subtitle( $post_id, $subtitle ) {
     106    function wcps_update_subtitle( $post_id, $subtitle ) {
    107107        return update_post_meta( $post_id, 'wc_ps_subtitle', $subtitle );
    108108    }
    109109}
    110110
    111 if ( ! function_exists( 'get_product_subtitle' ) ) {
     111if ( ! function_exists( 'wcps_get_subtitle' ) ) {
    112112    /**
    113113     * Gets From DB.
     
    117117     * @return mixed
    118118     */
    119     function get_product_subtitle( $id ) {
     119    function wcps_get_subtitle( $id ) {
    120120        return wp_kses( get_post_meta( $id, 'wc_ps_subtitle', true ), 'post' );
    121121    }
    122122}
    123 
    124 if ( ! function_exists( 'the_product_subtitle' ) ) {
    125     /**
    126      * Echos Subtitle's
    127      *
    128      * @param $id
    129      */
    130     function the_product_subtitle( $id ) {
    131         echo get_product_subtitle( $id );
    132     }
    133 }
  • wc-product-subtitle/tags/4.6/readme.txt

    r2675393 r2676353  
    77WC requires at least: 3.0
    88WC tested up to: 6.1.1
    9 Stable tag: 4.5.3
     9Stable tag: 4.6
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9393
    9494== 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
    95103= 4.5.3 =
    96104* Fixed All Security Issues Reported By WordPress.org Team
  • wc-product-subtitle/tags/4.6/vendor/autoload.php

    r2675393 r2676353  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitcab18722a25b5fc1d11a6fda6cbb5542::getLoader();
     7return ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7::getLoader();
  • wc-product-subtitle/tags/4.6/vendor/composer/autoload_real.php

    r2675393 r2676353  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitcab18722a25b5fc1d11a6fda6cbb5542
     5class ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitcab18722a25b5fc1d11a6fda6cbb5542', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInitcab18722a25b5fc1d11a6fda6cbb5542', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5252
    5353        if ($useStaticLoader) {
    54             $includeFiles = Composer\Autoload\ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542::$files;
     54            $includeFiles = Composer\Autoload\ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$files;
    5555        } else {
    5656            $includeFiles = require __DIR__ . '/autoload_files.php';
    5757        }
    5858        foreach ($includeFiles as $fileIdentifier => $file) {
    59             composerRequirecab18722a25b5fc1d11a6fda6cbb5542($fileIdentifier, $file);
     59            composerRequirefd6cf5bb751756862b0b94d75bdb0ef7($fileIdentifier, $file);
    6060        }
    6161
     
    6464}
    6565
    66 function composerRequirecab18722a25b5fc1d11a6fda6cbb5542($fileIdentifier, $file)
     66function composerRequirefd6cf5bb751756862b0b94d75bdb0ef7($fileIdentifier, $file)
    6767{
    6868    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • wc-product-subtitle/tags/4.6/vendor/composer/autoload_static.php

    r2675393 r2676353  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542
     7class ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7
    88{
    99    public static $files = array (
     
    6868    {
    6969        return \Closure::bind(function () use ($loader) {
    70             $loader->prefixLengthsPsr4 = ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542::$prefixLengthsPsr4;
    71             $loader->prefixDirsPsr4 = ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542::$prefixDirsPsr4;
    72             $loader->classMap = ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542::$classMap;
     70            $loader->prefixLengthsPsr4 = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$prefixLengthsPsr4;
     71            $loader->prefixDirsPsr4 = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$prefixDirsPsr4;
     72            $loader->classMap = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$classMap;
    7373
    7474        }, null, ClassLoader::class);
  • wc-product-subtitle/tags/4.6/wc-product-subtitle.php

    r2675393 r2676353  
    44 * Plugin URI: https://wordpress.org/plugins/wc-product-subtitle
    55 * Description: Create Custom Product Subtitle For WooCommerce Products.
    6  * Version: 4.5.3
     6 * Version: 4.6
    77 * Author: Varun Sridharan
    88 * Author URI: http://varunsridharan.in
     
    1717use Varunsridharan\WordPress\Plugin_Version_Management;
    1818
    19 defined( 'WCPS_VERSION' ) || define( 'WCPS_VERSION', '4.5.2' );
     19defined( 'WCPS_VERSION' ) || define( 'WCPS_VERSION', '4.6' );
    2020defined( 'WCPS_FILE' ) || define( 'WCPS_FILE', __FILE__ );
    2121defined( 'WCPS_NAME' ) || define( 'WCPS_NAME', __( 'Product Subtitle For WooCommerce', 'wc-product-subtitle' ) );
  • wc-product-subtitle/trunk/i18n/wc-product-subtitle.pot

    r2675393 r2676353  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Product Subtitle For WooCommerce 4.5.3\n"
     5"Project-Id-Version: Product Subtitle For WooCommerce 4.6\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-product-subtitle\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.2.0\n"
  • wc-product-subtitle/trunk/includes/abstract-display-handler.php

    r2321403 r2676353  
    7979            $pid = $post->ID;
    8080        }
    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 );
    8282    }
    8383}
  • wc-product-subtitle/trunk/includes/admin/class-order-render.php

    r2321403 r2676353  
    3333        if ( ! empty( $product_id ) ) {
    3434            $title    = __( 'Subtitle:', 'wc-product-subtitle' );
    35             $subtitle = get_product_subtitle( $product_id );
     35            $subtitle = wcps_get_subtitle( $product_id );
    3636            if ( ! empty( $subtitle ) ) {
    3737                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  
    4242            $this->template['element']  = wpo_field( 'select', 'element', __( 'Element Tag', 'wc-product-subtitle' ), array(
    4343                'style'      => 'width:10%',
    44                 'options'    => wc_product_subtitle_tags(),
     44                'options'    => wcps_subtitle_tags(),
    4545                'desc_field' => __( 'Which Type of html tag you need to have', 'wc-product-subtitle' ),
    4646                'select2'    => true,
     
    155155            $fieldset = $container->set_group( 'order_view_page' );
    156156            $fieldset->add_field( clone( $this->template['position'] ) )
    157                 ->options( wp_product_subtitle_placements( 'order_view' ) );
     157                ->options( wcps_subtitle_placement_areas( 'order_view' ) );
    158158            $fieldset->add_field( clone( $this->template['placement'] ) );
    159159            $fieldset->add_field( clone( $this->template['element'] ) );
     
    177177            $fieldset = $container->set_group( 'shop_page' );
    178178            $fieldset->add_field( clone( $this->template['position'] ) )
    179                 ->options( wp_product_subtitle_placements( 'shop' ) );
     179                ->options( wcps_subtitle_placement_areas( 'shop' ) );
    180180            $fieldset->add_field( clone( $this->template['placement'] ) );
    181181            $fieldset->add_field( clone( $this->template['element'] ) );
     
    198198            $fieldset = $container->set_group( 'single_product' );
    199199            $fieldset->add_field( clone( $this->template['position'] ) )
    200                 ->options( wp_product_subtitle_placements( 'single' ) );
     200                ->options( wcps_subtitle_placement_areas( 'single' ) );
    201201            $fieldset->add_field( clone( $this->template['placement'] ) );
    202202            $fieldset->add_field( clone( $this->template['element'] ) );
     
    222222            $container->subheading( $title . ' ' . __( 'Page Subtitle Configuration', 'wc-product-subtitle' ) );
    223223            $container->add_field( clone( $this->template['position'] ) )
    224                 ->options( wp_product_subtitle_placements( 'cart' ) );
     224                ->options( wcps_subtitle_placement_areas( 'cart' ) );
    225225            $container->add_field( clone( $this->template['placement'] ) );
    226226            $container->add_field( clone( $this->template['element'] ) );
     
    245245            $fieldset = $container->set_group( 'mini_cart' );
    246246            $fieldset->add( clone $this->template['position'] )
    247                 ->options( wp_product_subtitle_placements( 'mini_cart' ) );
     247                ->options( wcps_subtitle_placement_areas( 'mini_cart' ) );
    248248
    249249            $fieldset->add( clone $this->template['placement'] );
     
    271271            $container->subheading( __( 'Email Configuration', 'wc-product-subtitle' ) );
    272272            $fieldset = $container->set_group( 'email' );
    273             $fieldset->add( clone $this->template['position'] )->options( wp_product_subtitle_placements( 'email' ) );
     273            $fieldset->add( clone $this->template['position'] )->options( wcps_subtitle_placement_areas( 'email' ) );
    274274            $fieldset->add( clone $this->template['placement'] );
    275275            $fieldset->add( clone $this->template['element'] );
  • wc-product-subtitle/trunk/includes/admin/product/class-field.php

    r2321403 r2676353  
    3838        }
    3939        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'] ) );
    4141        }
    4242    }
     
    5050        if ( 'product' === $post->post_type ) {
    5151            global $post;
    52             $value = get_product_subtitle( $post->ID );
     52            $value = wcps_get_subtitle( $post->ID );
    5353
    5454            if ( wc_ps_option( 'admin_wp_editor' ) ) {
  • wc-product-subtitle/trunk/includes/admin/product/class-render.php

    r2321403 r2676353  
    4444        switch ( $column ) {
    4545            case 'subtitle':
    46                 the_product_subtitle( $post_id );
     46                echo wcps_get_subtitle( $post_id );
    4747                break;
    4848            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>';
    5050                break;
    5151        }
  • wc-product-subtitle/trunk/includes/class-integrations.php

    r2321403 r2676353  
    4040        }
    4141
    42         $subtitle = get_product_subtitle( $item['product']->get_id() );
     42        $subtitle = wcps_get_subtitle( $item['product']->get_id() );
    4343        if ( ! empty( $subtitle ) ) {
    4444            echo '<div class="product-subtitle"><small>' . __( 'Subtitle :', 'wc-product-subtitle' ) . ' ' . $subtitle . '</small></div>';
  • wc-product-subtitle/trunk/includes/class-tag-handler.php

    r2675393 r2676353  
    4242        }
    4343
    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 ) ) {
    4545            $return = $this->get_subtitle_in_element( $tag, $title, $pid );
    4646        } else {
  • wc-product-subtitle/trunk/includes/functions.php

    r2675393 r2676353  
    1717}
    1818
    19 if ( ! function_exists( 'wp_product_subtitle_placements' ) ) {
     19if ( ! function_exists( 'wcps_subtitle_placement_areas' ) ) {
    2020    /**
    2121     * Returns A List of places where subtitle's can be display based on the page.
     
    2525     * @return mixed|void
    2626     */
    27     function wp_product_subtitle_placements( $place = false ) {
     27    function wcps_subtitle_placement_areas( $place = false ) {
    2828        $placements = array(
    2929            ''      => __( 'Disable/ Use Shortcode', 'wc-product-subtitle' ),
     
    5959}
    6060
    61 if ( ! function_exists( 'wc_product_subtitle_default_tags' ) ) {
     61if ( ! function_exists( 'wcps_subtitle_default_tags' ) ) {
    6262    /**
    6363     * Returns Default Tags.
     
    6565     * @return array
    6666     */
    67     function wc_product_subtitle_default_tags() {
     67    function wcps_subtitle_default_tags() {
    6868        return array(
    6969            'i'      => '&#x3C;i&#x3E;',
     
    8484}
    8585
    86 if ( ! function_exists( 'wc_product_subtitle_tags' ) ) {
     86if ( ! function_exists( 'wcps_subtitle_tags' ) ) {
    8787    /**
    8888     * Returns Avaiable Tag Options.
     
    9090     * @return mixed|void
    9191     */
    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() );
    9494    }
    9595}
    9696
    97 if ( ! function_exists( 'update_product_subttile' ) ) {
     97if ( ! function_exists( 'wcps_update_subtitle' ) ) {
    9898    /**
    9999     * Updates Post Meta In DB.
     
    104104     * @return bool|int
    105105     */
    106     function update_product_subtitle( $post_id, $subtitle ) {
     106    function wcps_update_subtitle( $post_id, $subtitle ) {
    107107        return update_post_meta( $post_id, 'wc_ps_subtitle', $subtitle );
    108108    }
    109109}
    110110
    111 if ( ! function_exists( 'get_product_subtitle' ) ) {
     111if ( ! function_exists( 'wcps_get_subtitle' ) ) {
    112112    /**
    113113     * Gets From DB.
     
    117117     * @return mixed
    118118     */
    119     function get_product_subtitle( $id ) {
     119    function wcps_get_subtitle( $id ) {
    120120        return wp_kses( get_post_meta( $id, 'wc_ps_subtitle', true ), 'post' );
    121121    }
    122122}
    123 
    124 if ( ! function_exists( 'the_product_subtitle' ) ) {
    125     /**
    126      * Echos Subtitle's
    127      *
    128      * @param $id
    129      */
    130     function the_product_subtitle( $id ) {
    131         echo get_product_subtitle( $id );
    132     }
    133 }
  • wc-product-subtitle/trunk/readme.txt

    r2675393 r2676353  
    77WC requires at least: 3.0
    88WC tested up to: 6.1.1
    9 Stable tag: 4.5.3
     9Stable tag: 4.6
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9393
    9494== 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
    95103= 4.5.3 =
    96104* Fixed All Security Issues Reported By WordPress.org Team
  • wc-product-subtitle/trunk/vendor/autoload.php

    r2675393 r2676353  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitcab18722a25b5fc1d11a6fda6cbb5542::getLoader();
     7return ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7::getLoader();
  • wc-product-subtitle/trunk/vendor/composer/autoload_real.php

    r2675393 r2676353  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitcab18722a25b5fc1d11a6fda6cbb5542
     5class ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitcab18722a25b5fc1d11a6fda6cbb5542', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInitcab18722a25b5fc1d11a6fda6cbb5542', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitfd6cf5bb751756862b0b94d75bdb0ef7', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5252
    5353        if ($useStaticLoader) {
    54             $includeFiles = Composer\Autoload\ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542::$files;
     54            $includeFiles = Composer\Autoload\ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$files;
    5555        } else {
    5656            $includeFiles = require __DIR__ . '/autoload_files.php';
    5757        }
    5858        foreach ($includeFiles as $fileIdentifier => $file) {
    59             composerRequirecab18722a25b5fc1d11a6fda6cbb5542($fileIdentifier, $file);
     59            composerRequirefd6cf5bb751756862b0b94d75bdb0ef7($fileIdentifier, $file);
    6060        }
    6161
     
    6464}
    6565
    66 function composerRequirecab18722a25b5fc1d11a6fda6cbb5542($fileIdentifier, $file)
     66function composerRequirefd6cf5bb751756862b0b94d75bdb0ef7($fileIdentifier, $file)
    6767{
    6868    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • wc-product-subtitle/trunk/vendor/composer/autoload_static.php

    r2675393 r2676353  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542
     7class ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7
    88{
    99    public static $files = array (
     
    6868    {
    6969        return \Closure::bind(function () use ($loader) {
    70             $loader->prefixLengthsPsr4 = ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542::$prefixLengthsPsr4;
    71             $loader->prefixDirsPsr4 = ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542::$prefixDirsPsr4;
    72             $loader->classMap = ComposerStaticInitcab18722a25b5fc1d11a6fda6cbb5542::$classMap;
     70            $loader->prefixLengthsPsr4 = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$prefixLengthsPsr4;
     71            $loader->prefixDirsPsr4 = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$prefixDirsPsr4;
     72            $loader->classMap = ComposerStaticInitfd6cf5bb751756862b0b94d75bdb0ef7::$classMap;
    7373
    7474        }, null, ClassLoader::class);
  • wc-product-subtitle/trunk/wc-product-subtitle.php

    r2675393 r2676353  
    44 * Plugin URI: https://wordpress.org/plugins/wc-product-subtitle
    55 * Description: Create Custom Product Subtitle For WooCommerce Products.
    6  * Version: 4.5.3
     6 * Version: 4.6
    77 * Author: Varun Sridharan
    88 * Author URI: http://varunsridharan.in
     
    1717use Varunsridharan\WordPress\Plugin_Version_Management;
    1818
    19 defined( 'WCPS_VERSION' ) || define( 'WCPS_VERSION', '4.5.2' );
     19defined( 'WCPS_VERSION' ) || define( 'WCPS_VERSION', '4.6' );
    2020defined( 'WCPS_FILE' ) || define( 'WCPS_FILE', __FILE__ );
    2121defined( 'WCPS_NAME' ) || define( 'WCPS_NAME', __( 'Product Subtitle For WooCommerce', 'wc-product-subtitle' ) );
Note: See TracChangeset for help on using the changeset viewer.