Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/wp-admin/font-library.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@
);
}

// Check if Gutenberg build files are available
// Check if the build files are available.
if ( ! function_exists( 'wp_font_library_wp_admin_render_page' ) ) {
wp_die(
'<h1>' . __( 'Font Library is not available.' ) . '</h1>' .
'<p>' . __( 'The Font Library requires Gutenberg build files. Please run <code>npm install</code> to build the necessary files.' ) . '</p>',
'<p>' . sprintf(
/* translators: %s: npm run build */
__( 'The Font Library requires build files. Please run %s to build the necessary files.' ),
'<code>npm run build</code>'
) . '</p>',
503
);
}
Expand Down
6 changes: 5 additions & 1 deletion src/wp-admin/options-connectors.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
if ( ! class_exists( '\WordPress\AiClient\AiClient' ) || ! function_exists( 'wp_options_connectors_wp_admin_render_page' ) ) {
wp_die(
'<h1>' . __( 'Connectors are not available.' ) . '</h1>' .
'<p>' . __( 'The Connectors page requires build files. Please run <code>npm install</code> to build the necessary files.' ) . '</p>',
'<p>' . sprintf(
/* translators: %s: npm run build */
__( 'The Connectors page requires build files. Please run %s to build the necessary files.' ),
'<code>npm run build</code>'
) . '</p>',
503
);
}
Expand Down
Loading