From 6a01b09d50b95674d5ead3f2351472c259b51730 Mon Sep 17 00:00:00 2001 From: nenizera Date: Wed, 13 Nov 2024 21:47:00 +0000 Subject: [PATCH 1/4] [Speed]Update how-do-i-enable-http2-server-push-in-wordpress.mdx --- .../how-do-i-enable-http2-server-push-in-wordpress.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx b/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx index 2e6faab224a4cba..9f3827879a6b132 100644 --- a/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx +++ b/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx @@ -13,10 +13,11 @@ Article IDs: 115002816808 | How do I enable HTTP/2 Server Push in WordPress Cloudflare supports HTTP/2 Server Push and it can be enabled for stylesheets and scripts using Cloudflare’s WordPress plugin. In order to utilise this feature, you must first ensure you have the Cloudflare WordPress plugin [installed and set-up on your site](https://support.cloudflare.com/hc/en-us/articles/227634427-Using-Cloudflare-with-WordPress). -Once the plugin is installed, you can enable HTTP/2 Server Push simply by adding the following configuration code to your *wp-config.php* file: - -*define('CLOUDFLARE\_HTTP2\_SERVER\_PUSH\_ACTIVE', true);* +Once the plugin is installed, you can enable HTTP/2 Server Push simply by adding the following configuration code to your `wp-config.php` file: +```php +define('CLOUDFLARE\_HTTP2\_SERVER\_PUSH\_ACTIVE', true); +``` You should insert this line above where it says *"/\* That's all, stop editing! Happy blogging. \*/*", like follows:| ![Old URL: https://support.cloudflare.com/hc/en-us/article\_attachments/115005733547/Screen\_Shot\_2017-02-09\_at\_16.09.31.png From d21183bd707d5bf65f8545b44d7007431fbee1cc Mon Sep 17 00:00:00 2001 From: Pedro Sousa <680496+pedrosousa@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:25:20 +0000 Subject: [PATCH 2/4] Update PHP code --- .../how-do-i-enable-http2-server-push-in-wordpress.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx b/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx index 9f3827879a6b132..97576a2071a8b37 100644 --- a/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx +++ b/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx @@ -16,7 +16,7 @@ Cloudflare supports HTTP/2 Server Push and it can be enabled for stylesheets and Once the plugin is installed, you can enable HTTP/2 Server Push simply by adding the following configuration code to your `wp-config.php` file: ```php -define('CLOUDFLARE\_HTTP2\_SERVER\_PUSH\_ACTIVE', true); +define('CLOUDFLARE_HTTP2_SERVER_PUSH_ACTIVE', true); ``` You should insert this line above where it says *"/\* That's all, stop editing! Happy blogging. \*/*", like follows:| From 49ccf0046ea19dba7c0c937093b5cf96d2e54aa3 Mon Sep 17 00:00:00 2001 From: Pedro Sousa <680496+pedrosousa@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:26:55 +0000 Subject: [PATCH 3/4] PCX review (remove "simply") --- .../how-do-i-enable-http2-server-push-in-wordpress.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx b/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx index 97576a2071a8b37..a9665ec8a027fbc 100644 --- a/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx +++ b/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx @@ -13,7 +13,7 @@ Article IDs: 115002816808 | How do I enable HTTP/2 Server Push in WordPress Cloudflare supports HTTP/2 Server Push and it can be enabled for stylesheets and scripts using Cloudflare’s WordPress plugin. In order to utilise this feature, you must first ensure you have the Cloudflare WordPress plugin [installed and set-up on your site](https://support.cloudflare.com/hc/en-us/articles/227634427-Using-Cloudflare-with-WordPress). -Once the plugin is installed, you can enable HTTP/2 Server Push simply by adding the following configuration code to your `wp-config.php` file: +Once the plugin is installed, you can enable HTTP/2 Server Push by adding the following line to your `wp-config.php` file: ```php define('CLOUDFLARE_HTTP2_SERVER_PUSH_ACTIVE', true); From 69e6e415984128cdbbfe408c1d497431afa62eb1 Mon Sep 17 00:00:00 2001 From: Pedro Sousa <680496+pedrosousa@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:27:41 +0000 Subject: [PATCH 4/4] Add empty line --- .../how-do-i-enable-http2-server-push-in-wordpress.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx b/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx index a9665ec8a027fbc..87e8d1db64eb1a9 100644 --- a/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx +++ b/src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx @@ -18,6 +18,7 @@ Once the plugin is installed, you can enable HTTP/2 Server Push by adding the fo ```php define('CLOUDFLARE_HTTP2_SERVER_PUSH_ACTIVE', true); ``` + You should insert this line above where it says *"/\* That's all, stop editing! Happy blogging. \*/*", like follows:| ![Old URL: https://support.cloudflare.com/hc/en-us/article\_attachments/115005733547/Screen\_Shot\_2017-02-09\_at\_16.09.31.png