Plugin Directory

Changeset 3255169


Ignore:
Timestamp:
03/13/2025 07:28:10 AM (12 months ago)
Author:
eteubert
Message:

Update to version 4.2.4 from GitHub

Location:
podlove-podcasting-plugin-for-wordpress
Files:
2 added
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • podlove-podcasting-plugin-for-wordpress/tags/4.2.4/includes/api/feeds.php

    r3246867 r3255169  
    5151    public function get_items($request)
    5252    {
     53        return new \Podlove\Api\Response\OkResponse([
     54            '_version' => 'v2',
     55            'results' => self::get_feeds()
     56        ]);
     57    }
     58
     59    public static function get_feeds($taxonomy = null, $term_id = null)
     60    {
    5361        $feeds = Feed::find_all_by_property('enable', 1);
    5462
     
    6775                'id' => $feed->id,
    6876                'title' => $feed->get_title(),
    69                 'url' => $feed->get_subscribe_url(),
     77                'url' => $feed->get_subscribe_url($taxonomy, $term_id),
    7078                'content_type' => $feed->get_content_type()
    7179            ];
     
    8290        }
    8391
    84         return new \Podlove\Api\Response\OkResponse([
    85             '_version' => 'v2',
    86             'results' => $results,
    87         ]);
     92        return $results;
    8893    }
    8994}
  • podlove-podcasting-plugin-for-wordpress/tags/4.2.4/lib/modules/onboarding/settings/onboarding_page.php

    r3217075 r3255169  
    7979        $acknowledgeButton = __('All right, I\'ve got it', 'podlove-podcasting-plugin-for-wordpress');
    8080        $httpsWarningText = __('Warning: Your website is not configured to use https! This usually means that the authentication method the assistant uses is disabled by WordPress for security reasons. Please enable https before continuing.', 'podlove-podcasting-plugin-for-wordpress');
     81        $applicationPasswordWarningText = __('Warning: Application passwords are not available. Maybe a security plugin is blocking them.', 'podlove-podcasting-plugin-for-wordpress');
    8182
    8283        $httpsWarning = !wp_is_using_https() ? <<<EOD
    8384          <p class="onboarding-warning">⚠️ {$httpsWarningText}</p>
    8485        EOD : '';
     86
     87        $applicationPasswordWarning = !wp_is_application_passwords_available_for_user(wp_get_current_user()) ? <<<EOD
     88          <p class="onboarding-warning">⚠️ {$applicationPasswordWarningText}</p>
     89        EOD : '';
     90
     91        // don't skip intro page if there are warnings
     92        if ($httpsWarning || $applicationPasswordWarning) {
     93            $acknowledgeOption = false;
     94        }
    8595
    8696        echo <<<EOD
     
    91101          <p class="onboarding-description">{$acknowledgeDescription}</p>
    92102          {$httpsWarning}
     103          {$applicationPasswordWarning}
    93104          <button id="acknowledge-button" class="onboarding-button">{$acknowledgeButton}</button>
    94105        </div>
  • podlove-podcasting-plugin-for-wordpress/tags/4.2.4/lib/modules/shows/rest_api.php

    r3050611 r3255169  
    2222
    2323        register_rest_route(self::api_namespace, self::api_base.'/next_episode_number', [
    24           [
    25               'args' => [
     24            [
     25                'args' => [
    2626                    'show' => [
    2727                        'description' => 'show slug',
     
    4040        $shows = Show::all();
    4141
     42        $shows = array_map(function ($show) {
     43            $show = (array) $show;
     44            $show['feeds'] = \Podlove\Api\Feeds\WP_REST_PodloveFeed_Controller::get_feeds('shows', $show['id']);
     45
     46            return $show;
     47        }, $shows);
     48
    4249        return rest_ensure_response($shows);
    4350    }
     
    4552    public function get_next_episode_number($request)
    4653    {
    47       $slug = $request->get_param('show');
    48       $show = $slug ? Show::find_one_term_by_property('slug', $slug) : null;
     54        $slug = $request->get_param('show');
     55        $show = $slug ? Show::find_one_term_by_property('slug', $slug) : null;
    4956
    50       return Episode::get_next_episode_number($show ? $show->slug : null);
     57        return Episode::get_next_episode_number($show ? $show->slug : null);
    5158    }
    5259
  • podlove-podcasting-plugin-for-wordpress/tags/4.2.4/plugin.php

    r3026472 r3255169  
    209209require_once \Podlove\PLUGIN_DIR.'includes/capabilities.php';
    210210require_once \Podlove\PLUGIN_DIR.'includes/chapters.php';
     211require_once \Podlove\PLUGIN_DIR.'includes/compatibility.php';
    211212require_once \Podlove\PLUGIN_DIR.'includes/db_migration.php';
    212213require_once \Podlove\PLUGIN_DIR.'includes/deprecations.php';
  • podlove-podcasting-plugin-for-wordpress/tags/4.2.4/podlove.php

    r3246867 r3255169  
    33 * Plugin Name: Podlove Podcast Publisher
    44 * Plugin URI:  https://podlove.org/podlove-podcast-publisher/
    5  * Version: 4.2.3
     5 * Version: 4.2.4
    66 * Requires at least: 4.9.6
    77 * Requires PHP: 8.0
  • podlove-podcasting-plugin-for-wordpress/tags/4.2.4/readme.txt

    r3246867 r3255169  
    116116== Changelog ==
    117117
     118= 4.2.4 =
     119
     120- fix: when upgrading YOAST SEO while the Publisher is active, permalinks do not break any more
     121- onboarding: show warning if application passwords are disabled
     122- include feeds in `GET podlove/v2/shows` result
     123
    118124= 4.2.3 =
    119125
  • podlove-podcasting-plugin-for-wordpress/tags/4.2.4/vendor/composer/installed.php

    r3246867 r3255169  
    22    'root' => array(
    33        'name' => 'podlove/podcast-publisher',
    4         'pretty_version' => '4.2.3',
    5         'version' => '4.2.3.0',
    6         'reference' => '3f37989e000f406ec7a484490a3d0549bb06ac91',
     4        'pretty_version' => '4.2.4',
     5        'version' => '4.2.4.0',
     6        'reference' => '2b73b3d0230676746cea5ccd98464d96bbd016fe',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    144144        ),
    145145        'podlove/podcast-publisher' => array(
    146             'pretty_version' => '4.2.3',
    147             'version' => '4.2.3.0',
    148             'reference' => '3f37989e000f406ec7a484490a3d0549bb06ac91',
     146            'pretty_version' => '4.2.4',
     147            'version' => '4.2.4.0',
     148            'reference' => '2b73b3d0230676746cea5ccd98464d96bbd016fe',
    149149            'type' => 'library',
    150150            'install_path' => __DIR__ . '/../../',
  • podlove-podcasting-plugin-for-wordpress/trunk/includes/api/feeds.php

    r3246867 r3255169  
    5151    public function get_items($request)
    5252    {
     53        return new \Podlove\Api\Response\OkResponse([
     54            '_version' => 'v2',
     55            'results' => self::get_feeds()
     56        ]);
     57    }
     58
     59    public static function get_feeds($taxonomy = null, $term_id = null)
     60    {
    5361        $feeds = Feed::find_all_by_property('enable', 1);
    5462
     
    6775                'id' => $feed->id,
    6876                'title' => $feed->get_title(),
    69                 'url' => $feed->get_subscribe_url(),
     77                'url' => $feed->get_subscribe_url($taxonomy, $term_id),
    7078                'content_type' => $feed->get_content_type()
    7179            ];
     
    8290        }
    8391
    84         return new \Podlove\Api\Response\OkResponse([
    85             '_version' => 'v2',
    86             'results' => $results,
    87         ]);
     92        return $results;
    8893    }
    8994}
  • podlove-podcasting-plugin-for-wordpress/trunk/lib/modules/onboarding/settings/onboarding_page.php

    r3217075 r3255169  
    7979        $acknowledgeButton = __('All right, I\'ve got it', 'podlove-podcasting-plugin-for-wordpress');
    8080        $httpsWarningText = __('Warning: Your website is not configured to use https! This usually means that the authentication method the assistant uses is disabled by WordPress for security reasons. Please enable https before continuing.', 'podlove-podcasting-plugin-for-wordpress');
     81        $applicationPasswordWarningText = __('Warning: Application passwords are not available. Maybe a security plugin is blocking them.', 'podlove-podcasting-plugin-for-wordpress');
    8182
    8283        $httpsWarning = !wp_is_using_https() ? <<<EOD
    8384          <p class="onboarding-warning">⚠️ {$httpsWarningText}</p>
    8485        EOD : '';
     86
     87        $applicationPasswordWarning = !wp_is_application_passwords_available_for_user(wp_get_current_user()) ? <<<EOD
     88          <p class="onboarding-warning">⚠️ {$applicationPasswordWarningText}</p>
     89        EOD : '';
     90
     91        // don't skip intro page if there are warnings
     92        if ($httpsWarning || $applicationPasswordWarning) {
     93            $acknowledgeOption = false;
     94        }
    8595
    8696        echo <<<EOD
     
    91101          <p class="onboarding-description">{$acknowledgeDescription}</p>
    92102          {$httpsWarning}
     103          {$applicationPasswordWarning}
    93104          <button id="acknowledge-button" class="onboarding-button">{$acknowledgeButton}</button>
    94105        </div>
  • podlove-podcasting-plugin-for-wordpress/trunk/lib/modules/shows/rest_api.php

    r3050611 r3255169  
    2222
    2323        register_rest_route(self::api_namespace, self::api_base.'/next_episode_number', [
    24           [
    25               'args' => [
     24            [
     25                'args' => [
    2626                    'show' => [
    2727                        'description' => 'show slug',
     
    4040        $shows = Show::all();
    4141
     42        $shows = array_map(function ($show) {
     43            $show = (array) $show;
     44            $show['feeds'] = \Podlove\Api\Feeds\WP_REST_PodloveFeed_Controller::get_feeds('shows', $show['id']);
     45
     46            return $show;
     47        }, $shows);
     48
    4249        return rest_ensure_response($shows);
    4350    }
     
    4552    public function get_next_episode_number($request)
    4653    {
    47       $slug = $request->get_param('show');
    48       $show = $slug ? Show::find_one_term_by_property('slug', $slug) : null;
     54        $slug = $request->get_param('show');
     55        $show = $slug ? Show::find_one_term_by_property('slug', $slug) : null;
    4956
    50       return Episode::get_next_episode_number($show ? $show->slug : null);
     57        return Episode::get_next_episode_number($show ? $show->slug : null);
    5158    }
    5259
  • podlove-podcasting-plugin-for-wordpress/trunk/plugin.php

    r3026472 r3255169  
    209209require_once \Podlove\PLUGIN_DIR.'includes/capabilities.php';
    210210require_once \Podlove\PLUGIN_DIR.'includes/chapters.php';
     211require_once \Podlove\PLUGIN_DIR.'includes/compatibility.php';
    211212require_once \Podlove\PLUGIN_DIR.'includes/db_migration.php';
    212213require_once \Podlove\PLUGIN_DIR.'includes/deprecations.php';
  • podlove-podcasting-plugin-for-wordpress/trunk/podlove.php

    r3246867 r3255169  
    33 * Plugin Name: Podlove Podcast Publisher
    44 * Plugin URI:  https://podlove.org/podlove-podcast-publisher/
    5  * Version: 4.2.3
     5 * Version: 4.2.4
    66 * Requires at least: 4.9.6
    77 * Requires PHP: 8.0
  • podlove-podcasting-plugin-for-wordpress/trunk/readme.txt

    r3246867 r3255169  
    116116== Changelog ==
    117117
     118= 4.2.4 =
     119
     120- fix: when upgrading YOAST SEO while the Publisher is active, permalinks do not break any more
     121- onboarding: show warning if application passwords are disabled
     122- include feeds in `GET podlove/v2/shows` result
     123
    118124= 4.2.3 =
    119125
  • podlove-podcasting-plugin-for-wordpress/trunk/vendor/composer/installed.php

    r3246867 r3255169  
    22    'root' => array(
    33        'name' => 'podlove/podcast-publisher',
    4         'pretty_version' => '4.2.3',
    5         'version' => '4.2.3.0',
    6         'reference' => '3f37989e000f406ec7a484490a3d0549bb06ac91',
     4        'pretty_version' => '4.2.4',
     5        'version' => '4.2.4.0',
     6        'reference' => '2b73b3d0230676746cea5ccd98464d96bbd016fe',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    144144        ),
    145145        'podlove/podcast-publisher' => array(
    146             'pretty_version' => '4.2.3',
    147             'version' => '4.2.3.0',
    148             'reference' => '3f37989e000f406ec7a484490a3d0549bb06ac91',
     146            'pretty_version' => '4.2.4',
     147            'version' => '4.2.4.0',
     148            'reference' => '2b73b3d0230676746cea5ccd98464d96bbd016fe',
    149149            'type' => 'library',
    150150            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.