You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Plugin that makes sure your site runs smoothly on Vercel or Netlify.
7
7
Author: Mitch MacKenzie
8
-
Version: 1.0.0
8
+
Version: 1.0.1
9
9
*/
10
10
11
-
add_filter( 'got_url_rewrite', '__return_true' );
11
+
// WordPress doesn't know that serverlesswp-node emulates typical mod_rewrite behaviour.
12
+
add_filter( 'got_url_rewrite', '__return_true' );
13
+
14
+
15
+
// A notice to let people know they can't directly install themes.
16
+
functionserverlesswp_theme_install_notice() {
17
+
global$pagenow;
18
+
$pages = ['themes.php'];
19
+
if (is_admin() && in_array($pagenow, $pages)) {
20
+
?>
21
+
<div class="notice notice-info">
22
+
<h2><?php_e( 'Want to add a theme?', 'serverlesswp' ); ?></h2>
23
+
<p><?php_e( 'Direct theme installation is not currently possible with serverless functions. You can still add themes to your site though!', 'serverlesswp' ); ?></p>
24
+
<p><?php_e( '<a href="https://github.com/mitchmac/ServerlessWP/discussions/35">Learn how to add themes to your site\'s git repository.</a>', 'serverlesswp' ); ?></p>
// A notice to let people know they can't directly install themes.
34
+
functionserverlesswp_plugin_install_notice() {
35
+
global$pagenow;
36
+
$pages = ['plugin-install.php', 'plugins.php'];
37
+
if (is_admin() && in_array($pagenow, $pages)) {
38
+
?>
39
+
<div class="notice notice-info">
40
+
<h2><?php_e( 'Want to add a plugin?', 'serverlesswp' ); ?></h2>
41
+
<p><?php_e( 'Direct plugin installation is not currently possible with serverless functions. You can still add plugins to your site though!', 'serverlesswp' ); ?></p>
42
+
<p><?php_e( '<a href="https://github.com/mitchmac/ServerlessWP/discussions/35">Learn how to add plugins to your site\'s git repository.</a>', 'serverlesswp' ); ?></p>
0 commit comments