Skip to content

Commit c34bffb

Browse files
committed
wip
1 parent d368b3e commit c34bffb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ghost.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ public function setup( $args ) {
179179
// Customize the install page
180180
public function hcpp_render_body( $args ) {
181181
global $hcpp;
182+
183+
// Fill out version on app listing page
184+
if ( $args['page'] == 'hcpp_render_body' ) {
185+
$args['content'] = str_replace( '%ghost_version%', $hcpp->ghost->version, $args['content'] );
186+
return $args;
187+
}
188+
189+
// Customize the Ghost install page
182190
if ( $args['page'] !== 'setup_webapp') return $args;
183191
if ( strpos( $_SERVER['REQUEST_URI'], '?app=Ghost' ) === false ) return $args;
184192
$content = $args['content'];

0 commit comments

Comments
 (0)