Plugin Directory

Changeset 3057392 for powerkit


Ignore:
Timestamp:
03/23/2024 03:07:38 PM (13 months ago)
Author:
codesupplyco
Message:

Update version

Location:
powerkit/trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • powerkit/trunk/README.txt

    r3012577 r3057392  
    22Tags: share buttons, social links, Facebook, Twitter, Pinterest, Instagram, lightbox, slider, gallery, lazyload
    33Requires at least: 4.0
    4 Tested up to: 6.3
     4Tested up to: 6.4
    55Requires PHP: 5.4
    6 Stable tag: 2.9.1
     6Stable tag: 2.9.2
    77Contributors: codesupplyco
    88License: GPLv2 or later
     
    8383
    8484== Changelog ==
     85
     86= 2.9.2 =
     87* Improved plugin security
    8588
    8689= 2.9.1 =
  • powerkit/trunk/languages/powerkit.pot

    r3012577 r3057392  
    1 # Copyright (C) 2023 powerkit
     1# Copyright (C) 2024 powerkit
    22# This file is distributed under the same license as the powerkit package.
    33msgid ""
     
    32753275msgstr ""
    32763276
    3277 #: modules/social-links/helpers/helper-powerkit-links.php:57
     3277#: modules/social-links/helpers/helper-powerkit-links.php:59
    32783278msgid "Website"
    32793279msgstr ""
    32803280
    32813281#. translators: Social Settings Link.
    3282 #: modules/social-links/helpers/helper-powerkit-links.php:403
     3282#: modules/social-links/helpers/helper-powerkit-links.php:405
    32833283msgid "Please select social links in <object><a href=\"%s\" target=\"_blank\">Social Links Settings</a></object>."
    32843284msgstr ""
    32853285
    3286 #: modules/social-links/helpers/helper-powerkit-links.php:556
     3286#: modules/social-links/helpers/helper-powerkit-links.php:558
    32873287msgid "Social Links not found."
    32883288msgstr ""
  • powerkit/trunk/modules/basic-elements/templates/alerts.php

    r2239653 r3057392  
    9191    $output = sprintf(
    9292        '<div class="pk-alert pk-alert-%s%s" role="alert" >%s%s</div>',
    93         $atts['type'],
    94         $dm_class,
    95         $dm_button,
    96         $content
     93        esc_attr( $atts['type'] ),
     94        esc_attr( $dm_class ),
     95        wp_kses( $dm_button ),
     96        wp_kses( $content, 'post' ),
    9797    );
    9898
  • powerkit/trunk/modules/basic-elements/templates/buttons.php

    r2239653 r3057392  
    105105 */
    106106function powerkit_basic_shortcodes_button( $output, $atts, $content ) {
    107     $nofollow = ( 'true' === $atts['nofollow'] ) ? 'rel="nofollow"' : '';
    108     $block    = ( 'true' === $atts['block'] ) ? ' pk-button-block' : '';
     107    $block = ( 'true' === $atts['block'] ) ? ' pk-button-block' : '';
    109108
    110     if ( isset( $atts['title'] ) && $atts['title'] )  {
     109    if ( isset( $atts['title'] ) && $atts['title'] ) {
    111110        $title = $atts['title'];
    112111    }
    113112
    114     if ( $content  ) {
     113    if ( $content ) {
    115114        $title = $content;
    116115    }
     
    120119            %s
    121120        </a>',
    122         $atts['size'],
    123         $atts['style'],
    124         $block,
    125         $atts['url'],
    126         $atts['target'],
    127         $nofollow,
    128         $title
     121        esc_attr( $atts['size'] ),
     122        esc_attr( $atts['style'] ),
     123        esc_attr( $block ),
     124        esc_url( $atts['url'] ),
     125        esc_attr( $atts['target'] ),
     126        ( ( 'true' === $atts['nofollow'] ) ? 'rel="nofollow"' : '' ),
     127        wp_kses( $title, 'post' )
    129128    );
    130129
  • powerkit/trunk/modules/basic-elements/templates/collapsibles.php

    r2239653 r3057392  
    110110        </div>
    111111        ',
    112         $item_id,
    113         $atts['title'],
     112        esc_attr( $item_id ),
     113        wp_kses( $atts['title'], 'post' ),
    114114        ( 'true' === $atts['opened'] ) ? 'display:block;' : 'display:none;',
    115115        ( 'true' === $atts['opened'] ) ? 'expanded' : '',
    116         do_shortcode( $content )
     116        wp_kses( do_shortcode( $content ), 'post' ),
    117117    );
    118118
  • powerkit/trunk/modules/basic-elements/templates/separators.php

    r2239653 r3057392  
    6565        '<div class="pk-separator" %s>%s</div>',
    6666        $inl_css,
    67         $content
     67        wp_kses( $content, 'post' )
    6868    );
    6969
  • powerkit/trunk/modules/basic-elements/templates/tabs.php

    r2239653 r3057392  
    107107            $data_toggle,
    108108            $content_id,
    109             $tab['title']
     109            wp_kses( $tab['title'], 'post' )
    110110        );
    111111
     
    114114            $content_id,
    115115            ( 1 === $num ) ? ' pk-show pk-active' : '',
    116             $tab['content']
     116            wp_kses( $tab['content'], 'post' )
    117117        );
    118118
     
    152152
    153153    $powerkit_basic_shortcodes_tabs[] = array(
    154         'title'   => $atts['title'],
    155         'content' => $content,
     154        'title'   => wp_kses( $atts['title'], 'post' ),
     155        'content' => wp_kses( $content, 'post' ),
    156156    );
    157157
  • powerkit/trunk/modules/facebook/public/class-powerkit-facebook-fanpage-shortcode.php

    r2239653 r3057392  
    4040        <div class="fb-page-wrapper">
    4141            <div class="fb-page"
    42                  data-href="<?php echo esc_attr( $params['href'] ); ?>"
     42                 data-href="<?php echo esc_url( $params['href'] ); ?>"
    4343                 data-hide-cover="<?php echo esc_attr( $params['hide_cover'] ? 'true' : 'false' ); ?>"
    4444                 data-show-facepile="<?php echo esc_attr( $params['show_facepile'] ? 'true' : 'false' ); ?>"
  • powerkit/trunk/modules/facebook/public/class-powerkit-facebook-fanpage-widget.php

    r2953867 r3057392  
    7070                <div class="fb-page-wrapper">
    7171                    <div class="fb-page"
    72                         data-href="<?php echo esc_attr( $params['href'] ); ?>"
     72                        data-href="<?php echo esc_url( $params['href'] ); ?>"
    7373                        data-hide-cover="<?php echo esc_attr( $params['hide_cover'] ? 'true' : 'false' ); ?>"
    7474                        data-show-facepile="<?php echo esc_attr( $params['show_facepile'] ? 'true' : 'false' ); ?>"
     
    140140            <!-- Facebook Fanpage URL -->
    141141            <p><label for="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>"><?php esc_html_e( 'Facebook fanpage URL:', 'powerkit' ); ?></label>
    142             <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_attr( $params['href'] ); ?>" /></p>
     142            <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_url( $params['href'] ); ?>" /></p>
    143143
    144144            <!-- Hide Cover -->
  • powerkit/trunk/modules/pinterest/public/class-powerkit-pinterest-board-widget.php

    r2953867 r3057392  
    6464            ?>
    6565                <div class="pinterest-board-wrapper">
    66                     <a data-pin-do="embedBoard" data-pin-board-width="100%" href="<?php echo esc_attr( $params['href'] ); ?>"></a>
     66                    <a data-pin-do="embedBoard" data-pin-board-width="100%" href="<?php echo esc_url( $params['href'] ); ?>"></a>
    6767                </div>
    6868            <?php
     
    107107            <!-- Pinterest Board URL -->
    108108            <p><label for="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>"><?php esc_html_e( 'Pinterest board URL:', 'powerkit' ); ?></label>
    109             <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_attr( $params['href'] ); ?>" /></p>
     109            <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_url( $params['href'] ); ?>" /></p>
    110110        <?php
    111111    }
  • powerkit/trunk/modules/pinterest/public/class-powerkit-pinterest-profile-widget.php

    r2953867 r3057392  
    6464                ?>
    6565                <div class="pinterest-profile-wrapper">
    66                     <a data-pin-do="embedUser" data-pin-board="100%" href="<?php echo esc_attr( $params['href'] ); ?>"></a>
     66                    <a data-pin-do="embedUser" data-pin-board="100%" href="<?php echo esc_url( $params['href'] ); ?>"></a>
    6767                </div>
    6868                <?php
     
    107107            <!-- Pinterest Profile URL -->
    108108            <p><label for="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>"><?php esc_html_e( 'Pinterest profile URL:', 'powerkit' ); ?></label>
    109             <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_attr( $params['href'] ); ?>" /></p>
     109            <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_url( $params['href'] ); ?>" /></p>
    110110        <?php
    111111    }
  • powerkit/trunk/modules/pinterest/public/class-powerkit-pinterest-shortcode.php

    r2239653 r3057392  
    2828    ?>
    2929        <div class="pinterest-board-wrapper">
    30             <a data-pin-do="embedBoard" data-pin-board-width="100%" href="<?php echo esc_attr( $params['href'] ); ?>"></a>
     30            <a data-pin-do="embedBoard" data-pin-board-width="100%" href="<?php echo esc_url( $params['href'] ); ?>"></a>
    3131        </div>
    3232    <?php
     
    7979    ?>
    8080        <div class="pinterest-profile-wrapper">
    81             <a data-pin-do="embedUser" data-pin-board="100%" href="<?php echo esc_attr( $params['href'] ); ?>"></a>
     81            <a data-pin-do="embedUser" data-pin-board="100%" href="<?php echo esc_url( $params['href'] ); ?>"></a>
    8282        </div>
    8383    <?php
  • powerkit/trunk/modules/social-links/helpers/helper-powerkit-links.php

    r2748949 r3057392  
    1111 */
    1212function powerkit_get_author_fields() {
    13     return array(
     13    $fields = array(
    1414        'facebook'   => esc_html__( 'Facebook Profile URL', 'powerkit' ),
    1515        'twitter'    => esc_html__( 'Twitter Profile URL', 'powerkit' ),
     
    3434        'rss'        => esc_html__( 'RSS Profile URL', 'powerkit' ),
    3535    );
     36
     37    return apply_filters( 'powerkit_get_author_fields', $fields );
    3638}
    3739
  • powerkit/trunk/powerkit.php

    r3012577 r3057392  
    33 * Plugin Name:       Powerkit
    44 * Description:       Powerkit – essential components for every WordPress site.
    5  * Version:           2.9.1
     5 * Version:           2.9.2
    66 * Author:            Code Supply Co.
    77 * Author URI:        https://codesupply.co
Note: See TracChangeset for help on using the changeset viewer.