Plugin Directory

Changeset 3274237


Ignore:
Timestamp:
04/16/2025 07:32:44 AM (11 months ago)
Author:
easyprolabs
Message:

bug fix update

Location:
podcast-player
Files:
181 added
6 edited

Legend:

Unmodified
Added
Removed
  • podcast-player/trunk/README.txt

    r3272025 r3274237  
    33Tags: podcast, podcasting, rss feed, feed to audio, podcaster
    44Requires at least: 4.9
    5 Tested up to: 6.7
     5Tested up to: 6.8
    66Requires PHP: 5.6
    7 Stable tag: 7.7.2
     7Stable tag: 7.7.3
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    103103
    104104== Changelog ==
     105
     106= 7.7.3 =
     107* Bug Fix: Translation loading error fix.
    105108
    106109= 7.7.2 =
  • podcast-player/trunk/backend/admin/class-options.php

    r3245675 r3274237  
    6969     * @since 1.0.0
    7070     */
    71     public function __construct() {
     71    public function __construct() {}
     72
     73    /**
     74     * Register hooked functions.
     75     *
     76     * @since 1.0.0
     77     */
     78    public static function init() {
     79        $inst = self::get_instance();
     80        add_action( 'init', array( $inst, 'declare_admin_sections' ) );
     81        add_action( 'admin_menu', array( $inst, 'add_options_page' ) );
     82        add_action( 'admin_init', array( $inst, 'add_settings' ) );
     83        add_action( 'admin_enqueue_scripts', array( $inst, 'page_scripts' ) );
     84        add_action( 'podcast_player_options_page_content', array( $inst, 'display_content' ) );
     85        add_action( 'wp_ajax_pp_feed_editor', array( $inst, 'feed_editor_new' ) );
     86        add_action( 'wp_ajax_nopriv_pp_feed_editor', array( $inst, 'feed_editor_new' ) );
     87        add_action( 'wp_ajax_pp_migrate_podcast', array( $inst, 'migrate_podcast_source' ) );
     88        add_action( 'wp_ajax_pp_delete_source', array( $inst, 'delete_podcast_source' ) );
     89    }
     90
     91    /**
     92     * Declare Admin Sections for podcast player admin page.
     93     *
     94     * @since 7.7.3
     95     */
     96    public function declare_admin_sections() {
    7297        // Declare different modules of Podcast player options page (Sections).
    7398        $this->modules = array(
     
    105130
    106131    /**
    107      * Register hooked functions.
    108      *
    109      * @since 1.0.0
    110      */
    111     public static function init() {
    112         $inst = self::get_instance();
    113         add_action( 'admin_menu', array( $inst, 'add_options_page' ) );
    114         add_action( 'admin_init', array( $inst, 'add_settings' ) );
    115         add_action( 'admin_enqueue_scripts', array( $inst, 'page_scripts' ) );
    116         add_action( 'podcast_player_options_page_content', array( $inst, 'display_content' ) );
    117         add_action( 'wp_ajax_pp_feed_editor', array( $inst, 'feed_editor_new' ) );
    118         add_action( 'wp_ajax_nopriv_pp_feed_editor', array( $inst, 'feed_editor_new' ) );
    119         add_action( 'wp_ajax_pp_migrate_podcast', array( $inst, 'migrate_podcast_source' ) );
    120         add_action( 'wp_ajax_pp_delete_source', array( $inst, 'delete_podcast_source' ) );
    121     }
    122 
    123     /**
    124132     * Array of setting fields.
    125133     *
     
    145153                        'size' => 3,
    146154                    ),
    147                 ),
    148                 'hide_data'        => array(
    149                     'name'        => esc_html__( 'Protect Podcast Data from Exposure', 'podcast-player' ),
    150                     'id'          => 'hide_data',
    151                     'description' => esc_html__( 'Prevent unintentional display of podcast data, such as the audio URL and podcast feed URL, in the front-end page source.', 'podcast-player' ),
    152                     'link'        => '',
    153                     'type'        => 'checkbox',
    154                     'default'     => '',
    155                     'section'     => 'advanced',
    156155                ),
    157156                'update_method'    => array(
     
    214213                    'default'     => 'tabler',
    215214                    'section'     => 'design',
     215                ),
     216                'hide_data'        => array(
     217                    'name'        => esc_html__( 'Protect Podcast Data from Exposure', 'podcast-player' ),
     218                    'id'          => 'hide_data',
     219                    'description' => esc_html__( 'Prevent unintentional display of podcast data, such as the audio URL and podcast feed URL, in the front-end page source.', 'podcast-player' ),
     220                    'link'        => '',
     221                    'type'        => 'checkbox',
     222                    'default'     => '',
     223                    'section'     => 'advanced',
    216224                ),
    217225                'timezone'         => array(
  • podcast-player/trunk/backend/inc/class-loader.php

    r3272025 r3274237  
    231231        }
    232232
    233         if ( defined( 'PP_PRO_VERSION' ) && version_compare( PP_PRO_VERSION, '5.6.7', '<' ) ) {
     233        if ( defined( 'PP_PRO_VERSION' ) && version_compare( PP_PRO_VERSION, '5.6.8', '<' ) ) {
    234234            ?>
    235235            <div class="notice-warning notice is-dismissible pp-welcome-notice">
    236                 <p><?php esc_html_e( 'There is an update available to Podcast Player Pro. Please update to Podcast Player Pro v5.6.7. If you have not received an automated update notice, please login to our website and download latest version.', 'podcast-player' ); ?></p>
     236                <p><?php esc_html_e( 'There is an update available to Podcast Player Pro. Please update to Podcast Player Pro v5.6.8. If you have not received an automated update notice, please login to our website and download latest version.', 'podcast-player' ); ?></p>
    237237            </div>
    238238            <?php
  • podcast-player/trunk/frontend/class-register.php

    r3245675 r3274237  
    160160        add_action( 'wp_ajax_nopriv_pp_search_episodes', array( $instance, 'search_episodes' ) );
    161161
    162         // Support for Ajax powered WordPress themes.
    163         $is_ajax = Get_Fn::get_plugin_option( 'is_ajax' );
    164         if ( 'yes' === $is_ajax ) {
    165             add_filter( 'podcast_player_has_podcast', '__return_true', 12 );
    166         }
     162        add_filter( 'podcast_player_has_podcast', function( $status ) {
     163            return 'yes' === Get_Fn::get_plugin_option( 'is_ajax' ) ? true : $status;
     164        }, 12 );
    167165    }
    168166
     
    187185     */
    188186    public static function remove_frontend_data( $instance ) {
     187        // Temporarily disabling this features as causing lots of error on the podcast player.
    189188        // TODO: This method of hiding data is not working as expected. Multiple server requests are needed. Making it slow and less reliable.
    190         if ( 'yes' !== Get_Fn::get_plugin_option( 'hide_data' ) ) {
    191             return;
    192         }
    193         add_filter( 'podcast_player_data_protect', array( $instance, 'data_protect' ) );
    194         add_filter( 'podcast_player_mask_audio_url', array( $instance, 'mask_audio_url' ) );
     189        // add_filter( 'podcast_player_data_protect', array( $instance, 'data_protect' ) );
     190        // add_filter( 'podcast_player_mask_audio_url', array( $instance, 'mask_audio_url' ) );
    195191    }
    196192
  • podcast-player/trunk/frontend/inc/class-general.php

    r3130831 r3274237  
    1111namespace Podcast_Player\Frontend\Inc;
    1212
     13use Podcast_Player\Helper\Functions\Getters as Get_Fn;
    1314use Podcast_Player\Helper\Functions\Markup as Markup_Fn;
    1415use Podcast_Player\Helper\Core\Singleton;
     
    2930     */
    3031    public function data_protect( $data ) {
     32        if ( 'yes' !== Get_Fn::get_plugin_option( 'hide_data' ) ) {
     33            return $data;
     34        }
    3135        return array( array(), 0 );
    3236    }
     
    4044     */
    4145    public function mask_audio_url( $url ) {
     46        if ( 'yes' !== Get_Fn::get_plugin_option( 'hide_data' ) ) {
     47            return $url;
     48        }
    4249        return md5( esc_url( $url ) );
    4350    }
  • podcast-player/trunk/podcast-player.php

    r3272025 r3274237  
    1515 * Plugin URI:        https://easypodcastpro.com
    1616 * Description:       Host your podcast episodes anywhere, display them only using podcast feed url. Use custom widget or shortcode to display podcast player anywhere on your site.
    17  * Version:           7.7.2
     17 * Version:           7.7.3
    1818 * Author:            vedathemes
    1919 * Author URI:        https://easypodcastpro.com
     
    3030
    3131// Currently plugin version.
    32 define( 'PODCAST_PLAYER_VERSION', '7.7.2' );
     32define( 'PODCAST_PLAYER_VERSION', '7.7.3' );
    3333
    3434// Define plugin constants.
Note: See TracChangeset for help on using the changeset viewer.