Skip to content

Commit 9a7a9eb

Browse files
committed
Merge branch 'develop'
2 parents 47261fa + 6b31578 commit 9a7a9eb

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#### [unreleased]
22

3+
#### 12.14.0 / 2025-02-26
4+
* make sure proper release asset headers are added even if access token not set
5+
* ensure _short description_ is 150 characters or less
6+
37
#### 12.13.0 / 2025-02-21
48
* update caching
59
* add `versions` to REST endpoint for `{plugins|themes|update}-api`

git-updater.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Plugin Name: Git Updater
1313
* Plugin URI: https://git-updater.com
1414
* Description: A plugin to automatically update GitHub hosted plugins, themes, and language packs. Additional API plugins available for Bitbucket, GitLab, Gitea, and Gist.
15-
* Version: 12.13.0
15+
* Version: 12.14.0
1616
* Author: Andy Fragen
1717
* License: MIT
1818
* Domain Path: /languages

src/Git_Updater/Plugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public function plugins_api( $result, $action, $response ) {
312312
$response->version = $plugin->remote_version ?: $plugin->local_version;
313313
$response->sections = $plugin->sections;
314314
// phpcs:ignore WordPress.WP.AlternativeFunctions.strip_tags_strip_tags
315-
$response->short_description = substr( strip_tags( trim( $plugin->sections['description'] ) ), 0, 175 ) . '...';
315+
$response->short_description = substr( strip_tags( trim( $plugin->sections['description'] ) ), 0, 147 ) . '...';
316316
$response->requires = $plugin->requires;
317317
$response->requires_php = $plugin->requires_php;
318318
$response->tested = $plugin->tested;

src/Git_Updater/REST/REST_API.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public function get_api_data( \WP_REST_Request $request ) {
467467
'requires_plugins' => $repo_data->requires_plugins,
468468
'sections' => $repo_data->sections,
469469
// phpcs:ignore WordPress.WP.AlternativeFunctions.strip_tags_strip_tags
470-
'short_description' => substr( strip_tags( trim( $repo_data->sections['description'] ) ), 0, 175 ) . '...',
470+
'short_description' => substr( strip_tags( trim( $repo_data->sections['description'] ) ), 0, 147 ) . '...',
471471
'primary_branch' => $repo_data->primary_branch,
472472
'branch' => $repo_data->branch,
473473
'download_link' => $download ? $repo_data->download_link : '',

src/Git_Updater/Traits/Basic_Auth_Loader.php

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ final public function add_auth_header( $args, $url ) {
7575
* @param array $credentials Array of repository credential data.
7676
*/
7777
$args = apply_filters( 'gu_get_auth_header', $args, $credentials );
78+
79+
} elseif ( null !== $credentials['type'] ) { // No access token.
80+
$args['headers'][ $credentials['type'] ] = $credentials['slug'];
7881
}
7982
$args['headers'] = $args['headers'] ?? [];
8083

0 commit comments

Comments
 (0)