From 9466048bfb375eb894ecab1f4f05e8302d4d5916 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Wed, 4 Oct 2023 08:32:21 +0200 Subject: [PATCH 1/2] do not show block for WP versions below 5.9 (#484) * do not show block for WP versions below 5.9 * oops, wrong operator --- includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/functions.php b/includes/functions.php index 7e6265f..ffb3c60 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -458,6 +458,10 @@ if ( ! function_exists( 'get_self_link' ) ) { * @return boolean True if the site supports the block editor, false otherwise. */ function site_supports_blocks() { + if ( \version_compare( \get_bloginfo( 'version' ), '5.9', '<' ) ) { + return false; + } + if ( ! \function_exists( 'register_block_type_from_metadata' ) ) { return false; } From 7b0fc062d7e5acf72926b16473cb0165fa74afb1 Mon Sep 17 00:00:00 2001 From: Brandon Kraft Date: Wed, 4 Oct 2023 15:36:55 +0200 Subject: [PATCH 2/2] README: add missing words (#486) * README: add missing words * updated ActivityPub thanks @kraftbj --------- Co-authored-by: Matthias Pfefferle --- README.md | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ce432f..f259f92 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ The plugin works with the following tested federated platforms, but there may be Some things to note: 1. The blog-wide profile is only compatible with sites with rewrite rules enabled. If your site does not have rewrite rules enabled, the author-specific profiles may still work. -1. Many single-author blogs have chosen to turn off or redirect their author profile pages, usually via an SEO plugin like Yoast or Rank Math. This is usually done to avoid duplicate content with your blog’s home page. If your author page has been deactivated in this way, then ActivityPub author profiles won’t work for you. Instead, you can turn your author profile page back on, and then use the option in your SEO plugin to noindex the author page. This will duplicate content issues with search engines and will enable ActivityPub author profiles to work. +1. Many single-author blogs have chosen to turn off or redirect their author profile pages, usually via an SEO plugin like Yoast or Rank Math. This is usually done to avoid duplicate content with your blog’s home page. If your author page has been deactivated in this way, then ActivityPub author profiles won’t work for you. Instead, you can turn your author profile page back on, and then use the option in your SEO plugin to noindex the author page. This will still resolve duplicate content issues with search engines and will enable ActivityPub author profiles to work. 1. Once ActivityPub is installed, *only new posts going forward* will be available in the fediverse. Likewise, even if you’ve been using ActivityPub for a while, anyone who follows your site, will only see new posts you publish from that moment on. They will never see previously-published posts in their Home feed. This process is very similar to subscribing to a newsletter. If you subscribe to a newsletter, you will only receive future emails, but not the old archived ones. With ActivityPub, if someone follows your site, they will only receive new blog posts you publish from then on. So what’s the process? diff --git a/readme.txt b/readme.txt index f9b5cb8..8bd325b 100644 --- a/readme.txt +++ b/readme.txt @@ -36,7 +36,7 @@ The plugin works with the following tested federated platforms, but there may be Some things to note: 1. The blog-wide profile is only compatible with sites with rewrite rules enabled. If your site does not have rewrite rules enabled, the author-specific profiles may still work. -1. Many single-author blogs have chosen to turn off or redirect their author profile pages, usually via an SEO plugin like Yoast or Rank Math. This is usually done to avoid duplicate content with your blog’s home page. If your author page has been deactivated in this way, then ActivityPub author profiles won’t work for you. Instead, you can turn your author profile page back on, and then use the option in your SEO plugin to noindex the author page. This will duplicate content issues with search engines and will enable ActivityPub author profiles to work. +1. Many single-author blogs have chosen to turn off or redirect their author profile pages, usually via an SEO plugin like Yoast or Rank Math. This is usually done to avoid duplicate content with your blog’s home page. If your author page has been deactivated in this way, then ActivityPub author profiles won’t work for you. Instead, you can turn your author profile page back on, and then use the option in your SEO plugin to noindex the author page. This will still resolve duplicate content issues with search engines and will enable ActivityPub author profiles to work. 1. Once ActivityPub is installed, *only new posts going forward* will be available in the fediverse. Likewise, even if you’ve been using ActivityPub for a while, anyone who follows your site, will only see new posts you publish from that moment on. They will never see previously-published posts in their Home feed. This process is very similar to subscribing to a newsletter. If you subscribe to a newsletter, you will only receive future emails, but not the old archived ones. With ActivityPub, if someone follows your site, they will only receive new blog posts you publish from then on. So what’s the process?