Plugin Directory

Changeset 3342805


Ignore:
Timestamp:
08/11/2025 11:11:50 AM (8 months ago)
Author:
secondlinethemes
Message:

up to 1.5.3

Location:
podcast-subscribe-buttons
Files:
533 added
3 edited

Legend:

Unmodified
Added
Removed
  • podcast-subscribe-buttons/trunk/includes/CMB2/cmb2-init.php

    r3136110 r3342805  
    209209        'id'   => $prefix . 'subscribe_url',
    210210        'type' => 'text_url',
     211        // Allow deep-link app schemes in addition to WP defaults
     212        'protocols' => array_merge( wp_allowed_protocols(), array(
     213            'spotify',
     214            'castro',
     215            'icatcher',
     216            'overcast',
     217            'downcast',
     218            'pocketcasts',
     219            'pcast',
     220            'podcast',
     221            'podcasts',
     222            'podcastrepublic',
     223            'podcastaddict',
     224            'castbox',
     225            'podbean',
     226            'stitcher',
     227            'tunein'
     228        )),
    211229    ) );
    212230   
  • podcast-subscribe-buttons/trunk/podcast-subscribe-buttons.php

    r3162659 r3342805  
    33Plugin Name: Podcast Subscribe Buttons
    44Description: Easily add custom subscribe (follow) buttons for any podcasting platform or podcast destination
    5 Version: 1.5.2
     5Version: 1.5.3
    66Author: SecondLine Themes
    77Author URI: https://secondlinethemes.com
     
    2727
    2828/**
    29  * Extend list of allowed protocols.
     29 * Extend list of allowed protocols so deep links to apps are preserved.
    3030 *
    3131 * @param array $protocols List of default protocols allowed by WordPress.
    32  *
    33  * @return array $protocols Updated list including new protocols.
     32 * @return array Updated list including additional app schemes.
    3433 */
    35 function wporg_extend_allowed_protocols( $protocols ){
    36     $protocols[] = 'spotify';
     34function secondline_psb_extend_allowed_protocols( $protocols ) {
     35    $custom_schemes = array(
     36        // Known podcast app schemes
     37        'spotify',
     38        'aurelian',
     39        'castro',
     40        'icatcher',
     41        'overcast',
     42        'downcast',
     43        'pocketcasts',
     44        'pcast',
     45        'podcast',
     46        'podcasts',
     47        'podcastrepublic',
     48        'podcastaddict',
     49        'castbox',
     50        'podbean',
     51        'stitcher',
     52        'tunein'
     53    );
     54
     55    foreach ( $custom_schemes as $scheme ) {
     56        if ( ! in_array( $scheme, $protocols, true ) ) {
     57            $protocols[] = $scheme;
     58        }
     59    }
     60
    3761    return $protocols;
    3862}
  • podcast-subscribe-buttons/trunk/readme.txt

    r3162659 r3342805  
    5555== Changelog ==
    5656
     57= 1.5.3 =
     58* Tweak: improve additional deep-link protocols.
     59
    5760= 1.5.2 =
    58 * Fixed: Dismiss noticed
     61* Fixed: Dismiss noticed.
    5962
    6063= 1.5.1 =
Note: See TracChangeset for help on using the changeset viewer.