Skip to content

Commit

Permalink
Fix header.php and footer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
surma committed Nov 1, 2017
1 parent f7e6cdd commit b4412c8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ProgressiveWordPress",
"version": "0.0.3406",
"version": "0.0.3411",
"description": "A Sample WordPress-based Progressive Web App.",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions src/theme/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
*/
?>
<?php
if ( defined( 'ABSPATH' ) )
require_once( ABSPATH . '/wp-load.php' );
require_once(dirname(__FILE__).'/../../../wp-load.php');
etag_start();
?>
</pwp-view>
Expand Down
10 changes: 2 additions & 8 deletions src/theme/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,9 @@ function pwa_theme_get_theme_color() {
}

function pwa_site_icon_url( $size ) {
$url = get_site_icon_url( $size );

$url = get_site_icon_url( $size );
if ( ! $url ) {
if ( ! function_exists( 'jetpack_site_icon_url' ) ) {
require_once( JETPACK__PLUGIN_DIR . 'modules/site-icon/site-icon-functions.php' );
}
$url = jetpack_site_icon_url( null, $size );
return sprintf('%s/images/icon.png', get_template_directory_uri());
}

return $url;
}
?>
3 changes: 1 addition & 2 deletions src/theme/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
*/
?>
<?php
if ( defined( 'ABSPATH' ) )
require_once( ABSPATH . '/wp-load.php' );
require_once(dirname(__FILE__).'/../../../wp-load.php');
etag_start();
?>
<!doctype html>
Expand Down

0 comments on commit b4412c8

Please sign in to comment.