Skip to content

Commit d612a5a

Browse files
committed
Restore update checker
1 parent 0207fed commit d612a5a

4 files changed

Lines changed: 72 additions & 54 deletions

File tree

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.14
2+
3+
- Restore update checker
4+
15
## 1.0.13
26

37
- Remove broken `display_custom_post_status_option` hook

functions.php

Lines changed: 66 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,66 @@
1-
<?php
2-
3-
$NPM_PACKAGE = file_get_contents(get_template_directory() . '/package.json');
4-
$NPM_PACKAGE = json_decode($NPM_PACKAGE, true);
5-
$THEME_VERSION = $NPM_PACKAGE['version'];
6-
7-
define( 'THEME_VERSION', $THEME_VERSION );
8-
9-
/**
10-
* Load tweaks
11-
*/
12-
require get_template_directory() . '/inc/tweaks.php';
13-
14-
/**
15-
* Load CSS and JavaScript Enqueues
16-
*/
17-
require get_template_directory() . '/inc/enqueues.php';
18-
19-
/**
20-
* Load menus
21-
*/
22-
require get_template_directory() . '/inc/menus.php';
23-
24-
/**
25-
* Load custom post types
26-
*/
27-
require get_template_directory() . '/inc/custom-post-types.php';
28-
29-
/**
30-
* Load widgets
31-
*/
32-
require get_template_directory() . '/inc/widgets.php';
33-
34-
/**
35-
* Load thumbnail support and sizes
36-
*/
37-
require get_template_directory() . '/inc/thumbnails.php';
38-
39-
/**
40-
* Load shortcodes
41-
*/
42-
require get_template_directory() . '/inc/shortcodes.php';
43-
44-
/**
45-
* Load Responsive Media Options
46-
*/
47-
require get_template_directory() . '/inc/responsive-media.php';
48-
49-
/**
50-
* Load ACF Options
51-
*/
52-
require get_template_directory() . '/inc/acf.php';
1+
<?php
2+
3+
$NPM_PACKAGE = file_get_contents(get_template_directory() . '/package.json');
4+
$NPM_PACKAGE = json_decode($NPM_PACKAGE, true);
5+
$THEME_VERSION = $NPM_PACKAGE['version'];
6+
7+
define( 'THEME_VERSION', $THEME_VERSION );
8+
9+
/**
10+
* Load tweaks
11+
*/
12+
require get_template_directory() . '/inc/tweaks.php';
13+
14+
/**
15+
* Load CSS and JavaScript Enqueues
16+
*/
17+
require get_template_directory() . '/inc/enqueues.php';
18+
19+
/**
20+
* Load menus
21+
*/
22+
require get_template_directory() . '/inc/menus.php';
23+
24+
/**
25+
* Load custom post types
26+
*/
27+
require get_template_directory() . '/inc/custom-post-types.php';
28+
29+
/**
30+
* Load widgets
31+
*/
32+
require get_template_directory() . '/inc/widgets.php';
33+
34+
/**
35+
* Load thumbnail support and sizes
36+
*/
37+
require get_template_directory() . '/inc/thumbnails.php';
38+
39+
/**
40+
* Load shortcodes
41+
*/
42+
require get_template_directory() . '/inc/shortcodes.php';
43+
44+
/**
45+
* Load Responsive Media Options
46+
*/
47+
require get_template_directory() . '/inc/responsive-media.php';
48+
49+
/**
50+
* Load ACF Options
51+
*/
52+
require get_template_directory() . '/inc/acf.php';
53+
54+
/**
55+
* plugin-update-checker https://github.com/YahnisElsts/plugin-update-checker/
56+
*/
57+
require 'plugin-update-checker/plugin-update-checker.php';
58+
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
59+
'https://github.com/missionbit/f1-mission-bit/',
60+
__FILE__,
61+
'f1-mission-bit'
62+
);
63+
64+
//Set the branch that contains the stable release.
65+
$myUpdateChecker->setBranch('master');
66+
$myUpdateChecker->getVcsApi()->enableReleaseAssets();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "f1-mission-bit",
3-
"version": "1.0.13",
3+
"version": "1.0.14",
44
"scripts": {
55
"build": "yarn test && yarn format && NODE_ENV=production gulp build && yarn build-js && yarn build-scss",
66
"build-js": "parcel build ./assets/js/theme.js --out-dir ./dist/ --no-content-hash --log-level 4 --public-url ./ --no-cache",

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: https://github.com/missionbit/f1-mission-bit
44
Author: Factor1 Studios
55
Author URI: https://factor1studios.com
66
Description: A custom WordPress theme for Mission Bit developed by Factor1
7-
Version: 1.0.13
7+
Version: 1.0.14
88
License: GPL-3.0
99
License URI:
1010
Text Domain:

0 commit comments

Comments
 (0)