Changeset 3255169
- Timestamp:
- 03/13/2025 07:28:10 AM (12 months ago)
- Location:
- podlove-podcasting-plugin-for-wordpress
- Files:
-
- 2 added
- 14 edited
- 1 copied
-
tags/4.2.4 (copied) (copied from podlove-podcasting-plugin-for-wordpress/trunk)
-
tags/4.2.4/includes/api/feeds.php (modified) (3 diffs)
-
tags/4.2.4/includes/compatibility.php (added)
-
tags/4.2.4/lib/modules/onboarding/settings/onboarding_page.php (modified) (2 diffs)
-
tags/4.2.4/lib/modules/shows/rest_api.php (modified) (3 diffs)
-
tags/4.2.4/plugin.php (modified) (1 diff)
-
tags/4.2.4/podlove.php (modified) (1 diff)
-
tags/4.2.4/readme.txt (modified) (1 diff)
-
tags/4.2.4/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/includes/api/feeds.php (modified) (3 diffs)
-
trunk/includes/compatibility.php (added)
-
trunk/lib/modules/onboarding/settings/onboarding_page.php (modified) (2 diffs)
-
trunk/lib/modules/shows/rest_api.php (modified) (3 diffs)
-
trunk/plugin.php (modified) (1 diff)
-
trunk/podlove.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
podlove-podcasting-plugin-for-wordpress/tags/4.2.4/includes/api/feeds.php
r3246867 r3255169 51 51 public function get_items($request) 52 52 { 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 { 53 61 $feeds = Feed::find_all_by_property('enable', 1); 54 62 … … 67 75 'id' => $feed->id, 68 76 'title' => $feed->get_title(), 69 'url' => $feed->get_subscribe_url( ),77 'url' => $feed->get_subscribe_url($taxonomy, $term_id), 70 78 'content_type' => $feed->get_content_type() 71 79 ]; … … 82 90 } 83 91 84 return new \Podlove\Api\Response\OkResponse([ 85 '_version' => 'v2', 86 'results' => $results, 87 ]); 92 return $results; 88 93 } 89 94 } -
podlove-podcasting-plugin-for-wordpress/tags/4.2.4/lib/modules/onboarding/settings/onboarding_page.php
r3217075 r3255169 79 79 $acknowledgeButton = __('All right, I\'ve got it', 'podlove-podcasting-plugin-for-wordpress'); 80 80 $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'); 81 82 82 83 $httpsWarning = !wp_is_using_https() ? <<<EOD 83 84 <p class="onboarding-warning">⚠️ {$httpsWarningText}</p> 84 85 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 } 85 95 86 96 echo <<<EOD … … 91 101 <p class="onboarding-description">{$acknowledgeDescription}</p> 92 102 {$httpsWarning} 103 {$applicationPasswordWarning} 93 104 <button id="acknowledge-button" class="onboarding-button">{$acknowledgeButton}</button> 94 105 </div> -
podlove-podcasting-plugin-for-wordpress/tags/4.2.4/lib/modules/shows/rest_api.php
r3050611 r3255169 22 22 23 23 register_rest_route(self::api_namespace, self::api_base.'/next_episode_number', [ 24 [25 'args' => [24 [ 25 'args' => [ 26 26 'show' => [ 27 27 'description' => 'show slug', … … 40 40 $shows = Show::all(); 41 41 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 42 49 return rest_ensure_response($shows); 43 50 } … … 45 52 public function get_next_episode_number($request) 46 53 { 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; 49 56 50 return Episode::get_next_episode_number($show ? $show->slug : null);57 return Episode::get_next_episode_number($show ? $show->slug : null); 51 58 } 52 59 -
podlove-podcasting-plugin-for-wordpress/tags/4.2.4/plugin.php
r3026472 r3255169 209 209 require_once \Podlove\PLUGIN_DIR.'includes/capabilities.php'; 210 210 require_once \Podlove\PLUGIN_DIR.'includes/chapters.php'; 211 require_once \Podlove\PLUGIN_DIR.'includes/compatibility.php'; 211 212 require_once \Podlove\PLUGIN_DIR.'includes/db_migration.php'; 212 213 require_once \Podlove\PLUGIN_DIR.'includes/deprecations.php'; -
podlove-podcasting-plugin-for-wordpress/tags/4.2.4/podlove.php
r3246867 r3255169 3 3 * Plugin Name: Podlove Podcast Publisher 4 4 * Plugin URI: https://podlove.org/podlove-podcast-publisher/ 5 * Version: 4.2. 35 * Version: 4.2.4 6 6 * Requires at least: 4.9.6 7 7 * Requires PHP: 8.0 -
podlove-podcasting-plugin-for-wordpress/tags/4.2.4/readme.txt
r3246867 r3255169 116 116 == Changelog == 117 117 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 118 124 = 4.2.3 = 119 125 -
podlove-podcasting-plugin-for-wordpress/tags/4.2.4/vendor/composer/installed.php
r3246867 r3255169 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 144 144 ), 145 145 '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', 149 149 'type' => 'library', 150 150 'install_path' => __DIR__ . '/../../', -
podlove-podcasting-plugin-for-wordpress/trunk/includes/api/feeds.php
r3246867 r3255169 51 51 public function get_items($request) 52 52 { 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 { 53 61 $feeds = Feed::find_all_by_property('enable', 1); 54 62 … … 67 75 'id' => $feed->id, 68 76 'title' => $feed->get_title(), 69 'url' => $feed->get_subscribe_url( ),77 'url' => $feed->get_subscribe_url($taxonomy, $term_id), 70 78 'content_type' => $feed->get_content_type() 71 79 ]; … … 82 90 } 83 91 84 return new \Podlove\Api\Response\OkResponse([ 85 '_version' => 'v2', 86 'results' => $results, 87 ]); 92 return $results; 88 93 } 89 94 } -
podlove-podcasting-plugin-for-wordpress/trunk/lib/modules/onboarding/settings/onboarding_page.php
r3217075 r3255169 79 79 $acknowledgeButton = __('All right, I\'ve got it', 'podlove-podcasting-plugin-for-wordpress'); 80 80 $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'); 81 82 82 83 $httpsWarning = !wp_is_using_https() ? <<<EOD 83 84 <p class="onboarding-warning">⚠️ {$httpsWarningText}</p> 84 85 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 } 85 95 86 96 echo <<<EOD … … 91 101 <p class="onboarding-description">{$acknowledgeDescription}</p> 92 102 {$httpsWarning} 103 {$applicationPasswordWarning} 93 104 <button id="acknowledge-button" class="onboarding-button">{$acknowledgeButton}</button> 94 105 </div> -
podlove-podcasting-plugin-for-wordpress/trunk/lib/modules/shows/rest_api.php
r3050611 r3255169 22 22 23 23 register_rest_route(self::api_namespace, self::api_base.'/next_episode_number', [ 24 [25 'args' => [24 [ 25 'args' => [ 26 26 'show' => [ 27 27 'description' => 'show slug', … … 40 40 $shows = Show::all(); 41 41 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 42 49 return rest_ensure_response($shows); 43 50 } … … 45 52 public function get_next_episode_number($request) 46 53 { 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; 49 56 50 return Episode::get_next_episode_number($show ? $show->slug : null);57 return Episode::get_next_episode_number($show ? $show->slug : null); 51 58 } 52 59 -
podlove-podcasting-plugin-for-wordpress/trunk/plugin.php
r3026472 r3255169 209 209 require_once \Podlove\PLUGIN_DIR.'includes/capabilities.php'; 210 210 require_once \Podlove\PLUGIN_DIR.'includes/chapters.php'; 211 require_once \Podlove\PLUGIN_DIR.'includes/compatibility.php'; 211 212 require_once \Podlove\PLUGIN_DIR.'includes/db_migration.php'; 212 213 require_once \Podlove\PLUGIN_DIR.'includes/deprecations.php'; -
podlove-podcasting-plugin-for-wordpress/trunk/podlove.php
r3246867 r3255169 3 3 * Plugin Name: Podlove Podcast Publisher 4 4 * Plugin URI: https://podlove.org/podlove-podcast-publisher/ 5 * Version: 4.2. 35 * Version: 4.2.4 6 6 * Requires at least: 4.9.6 7 7 * Requires PHP: 8.0 -
podlove-podcasting-plugin-for-wordpress/trunk/readme.txt
r3246867 r3255169 116 116 == Changelog == 117 117 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 118 124 = 4.2.3 = 119 125 -
podlove-podcasting-plugin-for-wordpress/trunk/vendor/composer/installed.php
r3246867 r3255169 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 144 144 ), 145 145 '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', 149 149 'type' => 'library', 150 150 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.