Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
}
],
"require": {
"php": ">=7.4",
"composer/installers": "^1.0 || ^2.0"
"composer/installers": "^1.0 || ^2.0",
"afragen/git-updater-lite": "^3"
},
"scripts": {
"format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source",
Expand Down
11 changes: 11 additions & 0 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@
* Version: 23.7.20260716
* Author: Gutenberg Team and Birgit Pauli-Haack (Gutenberg Times)
* Text Domain: gutenberg
* Update URI: https://gutenbergtimes.com
* GitHub Plugin URI: bph/gutenberg
* Primary Branch: trunk
* Release Asset: true
*
* @package gutenberg
*/

// Add the development channel to the Git Updater Lite API URL for the Gutenberg plugin.
add_filter( 'git_updater_lite_api_url', fn( $url, $slug ) => ( 'gutenberg' === $slug ) ? add_query_arg( [ 'channel' => 'development' ], $url ) : $url, 10, 2 );

Check failure on line 21 in gutenberg.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Short array syntax is not allowed

// Initialize Git Updater Lite.

Check warning on line 23 in gutenberg.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Found precision alignment of 1 spaces.
if ( file_exists( __DIR__ . '/vendor/afragen/git-updater-lite/Lite.php' ) ) {

Check failure on line 24 in gutenberg.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Line indented incorrectly; expected 0 tabs, found 1 spaces

Check warning on line 24 in gutenberg.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Found precision alignment of 1 spaces.
require_once __DIR__ . '/vendor/afragen/git-updater-lite/Lite.php';
( new \Fragen\Git_Updater\Lite( __FILE__ ) )->run();
}


// GitHub Updater filters.
add_filter(
'gu_override_dot_org',
Expand All @@ -29,8 +40,8 @@
add_filter(
'gu_release_asset_rollback',
function ( $rollback, $file ) {
if ( $file === plugin_basename( __FILE__ ) ) {

Check failure on line 43 in gutenberg.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Use Yoda Condition checks, you must.
return [ 'gutenberg-nightly' ];

Check failure on line 44 in gutenberg.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Short array syntax is not allowed
}
},
10,
Expand Down
Loading