Skip to content

Commit e784149

Browse files
v0.5.1 (#57)
1 parent 0250b49 commit e784149

26 files changed

+827
-334
lines changed

.distignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
/vendor/
55
/tests/
66
.editorconfig
7+
.gitignore
8+
.distignore
9+
composer.json
10+
composer.lock
711
code-of-conduct.md
812
contributing.md
913
phpstan.neon.dist

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
1+
/vendor/
2+
/node_modules/
23
.DS_Store
4+
*.lock

.wordpress-org/banner-1544x500.png

-6.75 KB
Loading

.wordpress-org/banner-772x250.png

-3.96 KB
Loading

.wordpress-org/icon-128x128.png

1.07 KB
Loading

.wordpress-org/icon-256x256.jpg

30.9 KB
Loading

.wordpress-org/icon-256x256.png

3.35 KB
Loading

.wordpress-org/icon.svg

Lines changed: 4 additions & 4 deletions
Loading

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
### Changelog
22

3+
#### 0.5.1
4+
- Update to documentation, readmes, and doc blocks.
5+
- Fix `.distignore` to remove itself and .gitignore from WP-dot-org repo.
6+
- Add WP repo assets and deployment action.
7+
- Add plugin row links for support, donate, and github repro links.
8+
- New red and black logo.
9+
- New wordpress.org banner.
10+
- Test up to WordPress v6.0.2
11+
- Remove core post-related blocks in editor Closes [#53](https://github.com/joshuadavidnelson/disable-blog/issues/53). Adds `dwpb_disabled_blocks` passing array of blocks being disabled by the plugin.
12+
- Add scripts and styles to change Customizer view of homepage settings, matching the static homepage settings and updated text.
13+
- Update loader class to provide a `remove_filter` method. Closes [#58](https://github.com/joshuadavidnelson/disable-blog/issues/58).
14+
- Alter permalink settings based on if categories and author archives are supported.
15+
316
#### 0.5.0
417

518
**New:**
@@ -21,7 +34,7 @@
2134
- Hiding the default category & default post format on Writing options page.
2235

2336
**Fixes:**
24-
- Add `dwpb_xmlrpc_methods_to_remove` filter to extend the methods being disabled by the plugin. Pass `false` to remove the functionality entirely. Closes [#50](https://github.com/joshuadavidnelson/disable-blog/issues/50)
37+
- Add `dwpb_disabled_xmlpc_methods` filter to extend the methods being disabled by the plugin. Pass `false` to remove the functionality entirely. Closes [#50](https://github.com/joshuadavidnelson/disable-blog/issues/50)
2538
- Bring back some admin page redirects to account for use cases where direct access to `post.php`, `post-new.php`, etc occur. Closes [#45](https://github.com/joshuadavidnelson/disable-blog/issues/45).
2639
- Replace the REST API site health check (which uses the `post` type) with a matching function using the `page` endpoint instead. This was throwing an error with the `post` type REST endpoints are disabled. Closes [#46](https://github.com/joshuadavidnelson/disable-blog/issues/46)
2740
- Fix issue with Reading Settings link in admin notice outputting raw HTML instead of a link. Closes [#47](https://github.com/joshuadavidnelson/disable-blog/issues/47)
@@ -39,7 +52,7 @@
3952
- `dwpb_redirect_options_discussion` has been removed. Use `dwpb_redirect_admin_options_discussion` instead.
4053
- The filter `dwpb_redirect_admin_options_writing` that would pass a boolean to toggle off the options writing page has been remaned `dwpb_remove_options_writing` and must be passed with `true` in order to have the page redirect _and_ the admin menu item removed. By default the value filtered is false and the options Writing page does not go away, as numerous other plugins use this page for non-blog related settings. Now `dwpb_redirect_admin_options_writing` is used to filter the redirect url itself, replacing the previously named `dwpb_redirect_options_writing` filter.
4154
- `dwpb_redirect_options_tools` has been removed. Use `dwpb_redirect_admin_options_tools` instead.
42-
- New filter: `dwpb_xmlrpc_methods_to_remove` (see above).
55+
- New filter: `dwpb_disabled_xmlpc_methods` (see above).
4356
- New filter: `dwpb_author_archive_post_types` (see above).
4457
- New filter: `dwpb_disable_author_archives` (see above).
4558
- Update public redirect filters to match the pattern used for the new admin redirects. Filer changes include:

README.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,34 @@ Disable Blog
33

44
[![WordPress Plugin Version](https://img.shields.io/wordpress/plugin/v/disable-blog)](https://wordpress.org/plugins/disable-blog/) ![Downloads](https://img.shields.io/wordpress/plugin/dt/disable-blog.svg) ![Rating](https://img.shields.io/wordpress/plugin/r/disable-blog.svg)
55

6-
**Requires at least:** 4.0
7-
**Tested up to WordPress:** 5.9.3
8-
**Stable version:** 0.5.0
6+
**Requires at least WordPress:** 4.0
7+
**Tested up to WordPress:** 6.0.2
8+
**Stable version:** 0.5.1
99
**License:** GPLv2 or later
1010
**Requires PHP:** 5.6
1111
**Tested up to PHP:** 7.4
1212

13-
## Description
13+
All the power of WordPress, without a blog.
1414

15-
Free your WordPress site from posts with a blog-less WordPress site.
15+
## Description
1616

1717
Disable Blog is a comprehensive plugin to disable the built-in blogging functionality on your site. You'll be free to use pages and custom post types without the burden of a blog.
1818

19-
**Important**: **You need to select a page to act as the home page**.If Settings > Reading > "Front Page Displays" is not set to show on a page, then this plugin will not function correctly. Not doing so will mean that your post page can still be visible on the front-end of the site. Note that it's not required, but recommended you select a page for the "posts page" setting, this page will be automatically redirected to the static "home page."
19+
The blog is "disabled" when the plugin is activated, which removes support for the core 'post' type, hides blog-related admin pages/settings, and redirects urls on both the public and admin portions of the site. Refer to [below](#how-does-this-plugin-work) for a detailed functionality list.
2020

21-
**Site Content & Data**: This plugin will not delete any of your site's data, however it does by default redirect all posts and post comments to the homepage (refer to the documentation on ways to change this behavior).
21+
### Important: Set a front page
2222

23-
If you have any posts, comments, categories, and/or tags, delete them prior to activation (or deactivate this plugin, delete them, and re-active). If you don't delete them, they will remain in your database and become accessible if you deactivate this plugin or modify the plugin behavior to show posts.
23+
**You need to select a page to act as the home page**. If Settings > Reading > "Front Page Displays" is not set to show a page, then this plugin will not function correctly. Not doing so will mean that your post page can still be visible on the front-end of the site. It's not required, but it is recommended you select a page for the "posts page" setting, this page will be automatically redirected to the static "home page."
2424

25-
**Comments**: Comments remain enabled, unless the 'post' type is the only type supporting comments (pages also support comments by default, so the comments section won't disappear in most cases). If you're looking to disable comments completely, check out the [Disable Comments](https://wordpress.org/plugins/disable-comments/) plugin.
25+
### Site Content & Data
2626

27-
**Categories & Tags**: These are hidden and redirected, unless they are supported by a custom post type.
27+
This plugin will not delete any of your site's data, however existing blog related content will not be accessible while this plugins is active. This includes posts, categories, tags, and related comments.
2828

29-
**Custom Post Types**: This plugin includes extensive support for custom post types and taxonomies. If you are using a custom post type that supports the built-in `category` and/or `post_tag` taxonomies, they will be visible and accessible through that post type.
29+
If you have content and wish to remove it, either delete that content prior to activation or deactivate this plugin, delete it, and re-active.
3030

31-
**Support**: This plugin is maintained for free but **please reach out** and I will assist you as soon as possible. You can visit the [WordPress.org support forums](https://wordpress.org/support/plugin/disable-blog) or create an [issue](https://github.com/joshuadavidnelson/disable-blog/issues) on the [GitHub repository](https://github.com/joshuadavidnelson/disable-blog).
31+
### Comments
32+
33+
Comments remain enabled, unless the 'post' type is the only type supporting comments (pages also support comments by default, so the comments section won't disappear in most cases). If you're looking to disable comments completely, check out the [Disable Comments](https://wordpress.org/plugins/disable-comments/) plugin.
3234

3335
### How does this plugin work?
3436

@@ -81,15 +83,19 @@ Activating Disable Blog does the following:
8183

8284
If Settings > Reading > Front Page Displays is not set to show on a page, then some aspects of the plugin won't work, be sure to set your front page to a static page.
8385

84-
#### Contributing
85-
86-
All contributions are welcomed and considered, please refer to [contributing.md](contributing.md).
87-
8886
#### FAQ
8987

90-
1. Why Not Disable Comments Entirely?
91-
- This could be done, but other post types (like Pages) may have comment support. If you would like to disable comments, try the [Disable Comments](https://wordpress.org/plugins/disable-comments/) plugin
88+
1. Can I Disable Comments?
89+
- Other post types (like Pages) may have comment support and other great plugins exist that can disable comments, so this feature was not part of the initial development of this plugin. A future release will include options to disable comments, but until then if you would like to disable comments, try the [Disable Comments](https://wordpress.org/plugins/disable-comments/) plugin.
9290
2. I want to delete my posts and comments
93-
- Deactivate the plugin, delete your posts (which will delete related comments), and delete any tags or categories you might want to remove as well. Then reactivate the plugin to hide everything.
91+
- Deactivate the plugin, delete your posts (which will delete related comments), and delete any tags or categories you might want to remove as well. Then reactivate the Disable Blog to hide everything again.
9492
3. How can I disable author archives?
95-
- If you're not using the built-in WP author archives (typically at `example.com/author/joshua` urls) and would like to disable them entirely, add the following to your theme functions.php file or a custom plugin file: `add_filter( 'dwpb_disable_author_archives', '__return_true' );`. If author archives are not disabled, the plugin adds functionality to support custom post types on author archives by passing an array of post type slugs to `dwpb_author_archive_post_types` filter - however, theme support is usually needed to disable custom content types correctly.
93+
- If you're not using the built-in WP author archives for other purposes (example url: `example.com/author/author-name`) and would like to disable them entirely, add the following to your theme functions.php file or a custom plugin file: `add_filter( 'dwpb_disable_author_archives', '__return_true' );`. If author archives are not disabled, the plugin adds functionality to support custom post types on author archives by passing an array of post type slugs to `dwpb_author_archive_post_types` filter - however, theme support is usually needed to disable custom content types correctly.
94+
95+
#### Support
96+
97+
This plugin is maintained for free but **please reach out** and I will assist you as soon as possible. You can visit the [WordPress.org support forums](https://wordpress.org/support/plugin/disable-blog/) or create an [issue](https://github.com/joshuadavidnelson/disable-blog/issues/) on the [GitHub repository](https://github.com/joshuadavidnelson/disable-blog/).
98+
99+
#### Contributing
100+
101+
All contributions are welcomed and considered, please refer to [contributing.md](contributing.md).

0 commit comments

Comments
 (0)