| @@ 136-147 (lines=12) @@ | ||
| 133 | // Try fetching by patch | |
| 134 | $static_html = @file_get_contents( JETPACK__PLUGIN_DIR . '_inc/build/static.html' ); | |
| 135 | ||
| 136 | 		if ( false === $static_html ) { | |
| 137 | ||
| 138 | // If we still have nothing, display an error | |
| 139 | echo '<p>'; | |
| 140 | esc_html_e( 'Error fetching static.html. Try running: ', 'jetpack' ); | |
| 141 | echo '<code>yarn distclean && yarn build</code>'; | |
| 142 | echo '</p>'; | |
| 143 | 		} else { | |
| 144 | ||
| 145 | // We got the static.html so let's display it | |
| 146 | echo $static_html; | |
| 147 | } | |
| 148 | } | |
| 149 | ||
| 150 | /** | |
| @@ 26-32 (lines=7) @@ | ||
| 23 | $static_html = @file_get_contents( JETPACK__PLUGIN_DIR . '_inc/build/static.html' ); | |
| 24 | ||
| 25 | // If static.html isn't there, there's nothing else we can do. | |
| 26 | 		if ( false === $static_html ) { | |
| 27 | echo '<p>'; | |
| 28 | esc_html_e( 'Error fetching static.html. Try running: ', 'jetpack' ); | |
| 29 | echo '<code>yarn distclean && yarn build</code>'; | |
| 30 | echo '</p>'; | |
| 31 | return; | |
| 32 | } | |
| 33 | ||
| 34 | // We have static.html so let's continue trying to fetch the others | |
| 35 | $noscript_notice = @file_get_contents( JETPACK__PLUGIN_DIR . '_inc/build/static-noscript-notice.html' ); | |