Skip to content

Commit

Permalink
Removing legacy GitHub updater code
Browse files Browse the repository at this point in the history
  • Loading branch information
jrtashjian committed Jan 13, 2020
1 parent f78a9b3 commit 096090f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 487 deletions.
24 changes: 0 additions & 24 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,3 @@
* Block Initializer.
*/
require_once plugin_dir_path( __FILE__ ) . 'src/init.php';

/**
* GitHub Plugin Updater.
*/
function sbb_ghostwriter_github_plugin_updater_test_init() {
include_once 'updater.php';

if ( is_admin() ) {
$config = array(
'slug' => plugin_basename( __FILE__ ),
'proper_folder_name' => 'sbb-ghostwriter',
'api_url' => 'https://api.github.com/repos/sortabrilliant/ghostwriter',
'raw_url' => 'https://raw.github.com/sortabrilliant/ghostwriter/master',
'github_url' => 'https://github.com/sortabrilliant/ghostwriter',
'zip_url' => 'https://github.com/sortabrilliant/ghostwriter/archive/master.zip',
'requires' => '4.9.8',
'tested' => '4.9.8',
'readme' => 'README.md',
);

new SBB_Ghostwriter_GitHub_Updater( $config );
}
}
add_action( 'init', 'sbb_ghostwriter_github_plugin_updater_test_init' );
2 changes: 1 addition & 1 deletion src/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ registerBlockStyle('core/heading', {
name: 'default',
label: __('Default'),
isDefault: true,
});
});
Loading

0 comments on commit 096090f

Please sign in to comment.