Plugin Directory

Changeset 3400595


Ignore:
Timestamp:
11/21/2025 04:32:54 PM (3 months ago)
Author:
benbeecroft
Message:

PowerPress 11.15.2

Location:
powerpress/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • powerpress/trunk/js/admin.min.js

    r3398162 r3400595  
    2323function powerpress_cancelMediaEdit(el){let feed_slug=el.id.replace("cancel-media-edit-","");let display_filename=jQuery("#ep-box-filename-"+feed_slug);let link=sanitizeHTML(display_filename.val());let input=jQuery("#pp-url-input-container-"+feed_slug);let url_field=jQuery("#powerpress_url_"+feed_slug+" > input");let show_input=jQuery("#powerpress_url_show_"+feed_slug);let edit_media=jQuery("#edit-media-file-"+feed_slug);let select_file=jQuery("#select-media-file-"+feed_slug);let buttons=jQuery("#pp-change-media-file-"+feed_slug);let warning=jQuery("#file-change-warning-"+feed_slug);let blubrry_info=jQuery("#ep-box-blubrry-service-"+feed_slug);let container=jQuery("#pp-media-blubrry-container-"+feed_slug);if(verify_interval){clearInterval(verify_interval);verify_interval=!1}
    2424url_field.val(link);warning.css('display','none');input.removeAttr("style");input.attr("style","display: none");show_input.css("display","inline-block");edit_media.removeAttr("style");edit_media.attr("style","display: inline-block");select_file.removeAttr("style");select_file.attr("style","display: none");buttons.removeAttr("style");buttons.attr("style","display: none");blubrry_info.removeAttr("style");blubrry_info.attr("style","display: none");container.removeAttr("style")}
    25 function powerpress_saveMediaFile(el){let feed_slug=el.id.replace("save-media-","");powerpress_get_media_info(feed_slug);let link=sanitizeHTML(jQuery("#powerpress_url_display_"+feed_slug).val());let display_filename=jQuery("#ep-box-filename-"+feed_slug);let input=jQuery("#pp-url-input-container-"+feed_slug);let show_input=jQuery("#powerpress_url_show_"+feed_slug);let edit_media=jQuery("#edit-media-file-"+feed_slug);let buttons=jQuery("#pp-change-media-file-"+feed_slug);let warning=jQuery("#file-change-warning-"+feed_slug);let blubrry_info=jQuery("#ep-box-blubrry-service-"+feed_slug);let container=jQuery("#pp-media-blubrry-container-"+feed_slug);if(link!==''){if(verify_interval){clearInterval(verify_interval);verify_interval=!1}
    26 show_input.attr("title",link);display_filename.html(link);warning.css('display','none');input.removeAttr("style");input.attr("style","display: none");show_input.css("display","inline-block");edit_media.removeAttr("style");edit_media.attr("style","display: inline-block");buttons.removeAttr("style");buttons.attr("style","display: none");blubrry_info.removeAttr("style");blubrry_info.attr("style","display: none");container.removeAttr("style")}else{warning.css('display','block');warning.addClass("error")}}
     25function powerpress_saveMediaFile(el){let feed_slug=el.id.replace("save-media-","");let link=sanitizeHTML(jQuery("#powerpress_url_display_"+feed_slug).val());let warning=jQuery("#file-change-warning-"+feed_slug);if(link!==''){powerpress_get_media_info(feed_slug);if(verify_interval){clearInterval(verify_interval);verify_interval=!1}
     26warning.css('display','none')}else{warning.css('display','block');warning.addClass("error")}}
    2727function powerpress_skipToEpisodeSettings(feed_slug){let tab_container=jQuery("#tab-container-"+feed_slug);let warning=jQuery("#file-select-warning-"+feed_slug);let details=jQuery("#media-file-details-"+feed_slug);let blu_container=jQuery("#pp-media-blubrry-container-"+feed_slug);let connect_info=jQuery("#ep-box-blubrry-connect-"+feed_slug);let connect_info_small=jQuery("#ep-box-min-blubrry-connect-"+feed_slug);tab_container.removeAttr("style");tab_container.attr("style","display: block");warning.removeAttr("style");warning.attr("style","display: none");details.removeAttr("style");details.attr("style","display: inline-block");blu_container.removeAttr("style");blu_container.attr("style","background-color: #f1f4f9; padding: 2ch;");if(verify_interval){clearInterval(verify_interval);verify_interval=!1}
    2828if(connect_info.length){connect_info.attr("style","display: none");connect_info_small.removeAttr("style")}}
    2929function powerpress_updateMediaInput(el){let hidden_input_id=el.id.replace("display_","");jQuery('#'+hidden_input_id).val(el.value)}
    30 function powerpress_continueToEpisodeSettings(el){let feed_slug=el.id.replace("continue-to-episode-settings-","");powerpress_get_media_info(feed_slug);let link=sanitizeHTML(jQuery("#powerpress_url_display_"+feed_slug).val());let file_input=jQuery("#pp-url-input-container-"+feed_slug);let file_show=jQuery("#powerpress_url_show_"+feed_slug);let display_filename=jQuery("#ep-box-filename-"+feed_slug);let tab_container=jQuery("#tab-container-"+feed_slug);let warning=jQuery("#file-select-warning-"+feed_slug);let edit_file=jQuery("#edit-media-file-"+feed_slug);let select_file=jQuery("#select-media-file-"+feed_slug);let details=jQuery("#media-file-details-"+feed_slug);let blubrry_info=jQuery("#ep-box-blubrry-service-"+feed_slug);let blu_container=jQuery("#pp-media-blubrry-container-"+feed_slug);let connect_info=jQuery("#ep-box-blubrry-connect-"+feed_slug);let connect_info_small=jQuery("#ep-box-min-blubrry-connect-"+feed_slug);if(link.length>0){if(verify_interval){clearInterval(verify_interval);verify_interval=!1}
    31 file_show.attr("title",link);display_filename.html(link);tab_container.removeAttr("style");tab_container.attr("style","display: block");select_file.removeAttr("style");select_file.attr("style","display: none");edit_file.removeAttr("style");edit_file.attr("style","display: inline-block");file_input.removeAttr("style");file_input.attr("style","display: none");file_show.css("display","inline-block");warning.removeAttr("style");warning.attr("style","display: none");blubrry_info.removeAttr("style");blubrry_info.attr("style","display: none");details.removeAttr("style");details.attr("style","display: inline-block");blu_container.removeAttr("style");if(connect_info.length){connect_info.attr("style","display: none");connect_info_small.removeAttr("style")}}else{warning.css('display','block');warning.addClass("error")}}
     30function powerpress_continueToEpisodeSettings(el){let feed_slug=el.id.replace("continue-to-episode-settings-","");let link=sanitizeHTML(jQuery("#powerpress_url_display_"+feed_slug).val());let warning=jQuery("#file-select-warning-"+feed_slug);if(link!==''){powerpress_get_media_info(feed_slug);if(verify_interval){clearInterval(verify_interval);verify_interval=!1}
     31warning.removeAttr("style");warning.attr("style","display: none")}else{warning.css('display','block');warning.addClass("error")}}
    3232function powerpress_insertArtIntoPreview(el){let feed_slug=el.id.replace("powerpress_itunes_image_","");feed_slug=feed_slug.replace("powerpress_image_","");let art_input="#powerpress_itunes_image_"+feed_slug;let poster_input="#powerpress_image_"+feed_slug;let episode_artwork=jQuery(art_input);let img_tag=jQuery("#pp-image-preview-"+feed_slug);let caption_tag=jQuery("#pp-image-preview-caption-"+feed_slug);let poster_image=jQuery(poster_input);let poster_img_tag=jQuery("#poster-pp-image-preview-"+feed_slug);let poster_caption_tag=jQuery("#poster-pp-image-preview-caption-"+feed_slug);let new_poster_image=sanitizeHTML(poster_image.val());if(poster_img_tag.attr("src")!=new_poster_image&&new_poster_image.length>0){poster_img_tag.attr("src",new_poster_image);let filename="";if(new_poster_image.includes("/")){let parts=new_poster_image.split("/");filename=parts.pop()}else{let parts=new_poster_image.split("\\");filename=parts.pop()}
    3333poster_caption_tag[0].innerHTML=filename}
  • powerpress/trunk/powerpress.php

    r3399855 r3400595  
    44Plugin URI: https://blubrry.com/services/powerpress-plugin/
    55Description: <a href="https://blubrry.com/services/powerpress-plugin/" target="_blank">Blubrry PowerPress</a> is the No. 1 Podcasting plugin for WordPress. Developed by podcasters for podcasters; features include Simple and Advanced modes, multiple audio/video player options, subscribe to podcast tools, podcast SEO features, and more! Fully supports Apple Podcasts (previously iTunes), Google Podcasts, Spotify, and Blubrry Podcasting directories, as well as all podcast applications and clients.
    6 Version: 11.15.1
     6Version: 11.15.2
    77Author: Blubrry
    88Author URI: https://blubrry.com/
     
    135135
    136136// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
    137 define('POWERPRESS_VERSION', '11.15.1' );
     137define('POWERPRESS_VERSION', '11.15.2' );
    138138
    139139// Translation support:
  • powerpress/trunk/powerpressadmin.php

    r3399855 r3400595  
    760760            {
    761761                // CREDITS
    762                 $credit_data = [];
    763762                // nested
    764763                if (isset($Feed['credits']) && is_array($Feed['credits'])) {
     764                    $credit_data = [];
    765765                    foreach($Feed['credits'] as $credit) {
    766766                        if (empty($credit['name'])) continue;
     
    778778                    // replace intaken Feed values with only validated data
    779779                    $Feed['credits'] = $credit_data;
    780                 }   
     780                } else {
     781                    $Feed['credits'] = [];
     782                }
    781783
    782784                // VALUE RECIPIENTS (V4V)
     
    820822                    // replace intaken Feed values with only validated data
    821823                    $Feed['value_recipients'] = $valid_recipients;
     824                } else {
     825                    $Feed['value_recipients'] = [];
    822826                }
    823827
     
    843847                    // replace intaken Feed values with only validated data
    844848                    $Feed['location'] = $valid_locations;
     849                } else {
     850                    $Feed['location'] = [];
    845851                }
    846852
     
    868874                    // replace intaken Feed values with only validated data
    869875                    $Feed['txt_tag'] = $txt_tag_data;
     876                } else {
     877                    $Feed['txt_tag'] = [];
    870878                }
    871879
  • powerpress/trunk/readme.txt

    r3399855 r3400595  
    55Requires PHP: 5.2
    66Tested up to: 6.8
    7 Stable tag: 11.15.1
     7Stable tag: 11.15.2
    88Donate link: https://blubrry.com/services/podcast-hosting/
    99License: GPLv2 or later
     
    165165
    166166== Changelog ==
     167= 11.15.2 =
     168* Released on 11/20/2025
     169* Bugfix: Location as a string was not being caught in normalizer
     170* Bugfix: Deletion bug in feed settings fixed by adding else clause to save flow
     171
    167172= 11.15.1 =
    168173* Released on 11/19/2025
  • powerpress/trunk/templates/location-section-template.php

    r3398162 r3400595  
    55// Data Normalization
    66if (!empty($DataSource['location'])) {
    7     $first_location = reset($DataSource['location']);
    8        
    9     // nested
    10     if (is_array($first_location) && (isset($first_location['address']) || isset($first_location['location']))) {
    11         foreach ($DataSource['location'] as $location) {
    12             if (empty($location) || !is_array($location)) continue;
    13                
    14             $address = $location['address'] ?? $location['location'] ?? '';
    15             if ($address === '') continue;
    16                
    17             $section_data[] = [
    18                 'address' => $address,
    19                 'pci_rel' => $location['pci_rel'] ?? $location['rel'] ?? '1',
    20                 'pci_country' => $location['pci_country'] ?? $location['country'] ?? '',
    21                 'pci_geo' => $location['pci_geo'] ?? $location['geo'] ?? '',
    22                 'pci_osm' => $location['pci_osm'] ?? $location['osm'] ?? ''
    23             ];
    24         }
    25     // paralellized (legacy)
    26     } else {
    27         foreach ($DataSource['location'] as $i => $address) {
    28             if ($address === '' || $address === null) continue;
    29                
    30             $section_data[] = [
    31                 'address' => $address,
    32                 'pci_rel' => $DataSource['pci_rel'][$i] ?? '1',
    33                 'pci_country' => $DataSource['pci_country'][$i] ?? '',
    34                 'pci_geo' => $DataSource['pci_geo'][$i] ?? '',
    35                 'pci_osm' => $DataSource['pci_osm'][$i] ?? ''
    36             ];
     7    // standalone address string (Hamburg, Germany)
     8    if (is_string($DataSource['location'])) {
     9        $section_data[] = [
     10            'address' => $DataSource['location'],
     11            'pci_rel' => '1',
     12            'pci_country' => '',
     13            'pci_geo' => '',
     14            'pci_osm' => ''
     15        ];
     16    } elseif (is_array($DataSource['location'])) {
     17        $first_location = reset($DataSource['location']);
     18
     19        // nested
     20        if (is_array($first_location) && (isset($first_location['address']) || isset($first_location['location']))) {
     21            foreach ($DataSource['location'] as $location) {
     22                if (empty($location) || !is_array($location)) continue;
     23
     24                $address = $location['address'] ?? $location['location'] ?? '';
     25                if ($address === '') continue;
     26
     27                $section_data[] = [
     28                    'address' => $address,
     29                    'pci_rel' => $location['pci_rel'] ?? $location['rel'] ?? '1',
     30                    'pci_country' => $location['pci_country'] ?? $location['country'] ?? '',
     31                    'pci_geo' => $location['pci_geo'] ?? $location['geo'] ?? '',
     32                    'pci_osm' => $location['pci_osm'] ?? $location['osm'] ?? ''
     33                ];
     34            }
     35
     36        // paralellized (legacy)
     37        } else {
     38            foreach ($DataSource['location'] as $i => $address) {
     39                if ($address === '' || $address === null) continue;
     40
     41                $section_data[] = [
     42                    'address' => $address,
     43                    'pci_rel' => $DataSource['pci_rel'][$i] ?? '1',
     44                    'pci_country' => $DataSource['pci_country'][$i] ?? '',
     45                    'pci_geo' => $DataSource['pci_geo'][$i] ?? '',
     46                    'pci_osm' => $DataSource['pci_osm'][$i] ?? ''
     47                ];
     48            }
    3749        }
    3850    }
     
    156168                            <?php echo __('Country', 'powerpress'); ?>
    157169                        </label>
    158                             <select id="location-search-country-<?php echo $FeedSlug; ?>"
    159                                 class="pp-box-input"
    160                                 style="width: 100%; font-size: 14px;">
    161                                 <?php powerpress_print_select_options_country(); ?>
    162                             </select>
     170                        <select id="location-search-country-<?php echo $FeedSlug; ?>"
     171                            class="pp-box-input"
     172                            style="width: 100%; font-size: 14px;">
     173                            <?php powerpress_print_select_options_country(); ?>
     174                        </select>
    163175                        <small class="text-muted" style="display: block; margin-top: 4px; margin-bottom: 0;">
    164176                            <?php echo __('Optional search enhancement', 'powerpress'); ?>
  • powerpress/trunk/version.txt

    r3399855 r3400595  
    1 11.15.1
     111.15.2
Note: See TracChangeset for help on using the changeset viewer.