Skip to content
Closed
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
6 changes: 3 additions & 3 deletions src/wp-admin/font-library.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
);
}

// 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>',
'<h1>' . __( 'The Font Library is not available.' ) . '</h1>' .
'<p>' . __( 'The Font Library requires build files. Please build WordPress and try again.' ) . '</p>',
503
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/options-connectors.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

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>',
'<h1>' . __( 'The Connectors are not available.' ) . '</h1>' .
'<p>' . __( 'The Connectors page requires build files. Please build WordPress and try again.' ) . '</p>',
503
);
}
Expand Down
Loading