Skip to content

Commit

Permalink
Merge pull request #1 from afragen/patch-1
Browse files Browse the repository at this point in the history
Add GitHub Updater stuff
  • Loading branch information
bph authored Nov 2, 2020
2 parents 5bd2f14 + 3cb9bbd commit da93e47
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,32 @@
* Version: 9.2.2.20201101
* Author: Gutenberg Team / Birgit Pauli-Haack (Gutenberg Times)
* Text Domain: gutenberg
* GitHub Plugin URI: bph/gutenberg
* Release Asset: true
*
* @package gutenberg
*/

// GitHub Updater filters.
add_filter(
'github_updater_override_dot_org',
function ( $overrides ) {
return array_merge(
$overrides,
array( 'gutenberg/gutenberg.php' )
);
}
);
add_filter(
'github_updater_number_rollbacks',
function () {
return 2;
}
);
add_filter( 'github_updater_no_release_asset_branches', '__return_true' );
// End GitHub Updater filters.


### BEGIN AUTO-GENERATED DEFINES
defined( 'GUTENBERG_DEVELOPMENT_MODE' ) or define( 'GUTENBERG_DEVELOPMENT_MODE', true );
### END AUTO-GENERATED DEFINES
Expand Down

0 comments on commit da93e47

Please sign in to comment.