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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+36-26Lines changed: 36 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,16 @@
1
-
### Changelog
2
-
3
-
#### 0.5.3
1
+
# Changelog
2
+
3
+
## 0.5.4
4
+
- Tested up to WordPress 6.4.2.
5
+
- Bump minimum WordPress version to 5.3, aligning with minimum PHP support.
6
+
- Test to PHP 8.2.
7
+
- Update Github actions.
8
+
- Add Code Standard fixer Github Action, h/t @szepeviktor
9
+
- Fix coding standards and a bunch of typos, h/t @szepeviktor
10
+
- Increase accuracy of CSS selector used to hide blog related items in Settings > Reading, closes [#69](https://github.com/joshuadavidnelson/disable-blog/issues/69)
11
+
- Add `.wp-env.json` for local development.
12
+
13
+
## 0.5.3
4
14
- Fix `typeof` typo in `disable-blog-customizer.js` from 0.5.2 updates for #59.
5
15
- Fix uninstall error to allow for the plugin to be deleted correctly.
6
16
- Only fire comment related admin functions if comments are supported.
@@ -9,7 +19,7 @@
9
19
- Create a plugin integration framework - simple class with "plugin active" checks and related integration functions, including the preexisting WooCommerce (version <= 2.6.2) comment count integration.
10
20
- Add a Disable Comments integration, utilizing the `dwpb_post_types_supporting_comments` to turn off all Disable Blog comment-related functions if Disable Comments is active.
11
21
12
-
####0.5.2
22
+
## 0.5.2
13
23
- Test up to WP 6.1.1
14
24
- Increase minimum PHP to v7.4
15
25
- Test to PHP 8.1
@@ -18,7 +28,7 @@
18
28
- Adds a check to the customizer script to avoid a TypeError. Closes #59
19
29
- Increase specificity in permalinks page to correctly target and remove "optional" section when category and post tags are not supported by any post type (default condition). Closes #62
20
30
21
-
####0.5.1
31
+
## 0.5.1
22
32
- Update to documentation, readmes, and doc blocks.
23
33
- Fix `.distignore` to remove itself and .gitignore from WP-dot-org repo.
24
34
- Add WP repo assets and deployment action.
@@ -32,7 +42,7 @@
32
42
- Alter permalink settings based on if categories and author archives are supported.
33
43
- Move `dwpb_disable_feed` filter into a function in the `Disable_Blog_Functions` class.
34
44
35
-
####0.5.0
45
+
## 0.5.0
36
46
37
47
**New**
38
48
- New disable author archive functionality via new `dwpb_disable_author_archives` filter. Pass `true` to disable author archives entirely. Default does not disable author archives because numerous other plugins use author archives for other purposes. (A future settings page will provide more flexibility here).
@@ -60,7 +70,7 @@
60
70
- In order to account for multiple subpages of a common parent page being removed the `dwpb_menu_subpages_to_remove` param has been updated to support an array of subpages in the format of `$remove_subpages['parent-page-slug.php'] = array( 'subpage-1.php', 'subpage-2.php' );`, though it still supports subpages as strings for backwards compatibility. Fixes bugs were `options-writing.php` and `options-discussion.php` were conflicting.
61
71
62
72
**Improvements/Updates**
63
-
- Update admin filters to a common format and removing redundent filters. Filter changes include:
73
+
- Update admin filters to a common format and removing redundant filters. Filter changes include:
64
74
- New filter: `dwpb_redirect_admin_url` filters the final url used in admin redirects.
65
75
- `dwpb_redirect_admin` only accepts 1 parameter, the previous version accepted 3 (dropping `$redirect_url` & `$current_url`).
66
76
- `dwpb_redirect_admin_edit_post` is now `dwpb_redirect_admin_edit`.
@@ -69,7 +79,7 @@
69
79
- `dwpb_redirect_edit_tax` has been removed. Use `dwpb_redirect_admin_edit_tags` or `dwpb_redirect_admin_term` instead, depending on the context.
70
80
- `dwpb_redirect_edit_comments` has been removed. use `dwpb_redirect_admin_edit_comments` instead.
71
81
- `dwpb_redirect_options_discussion` has been removed. Use `dwpb_redirect_admin_options_discussion` instead.
72
-
- 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.
82
+
- The filter `dwpb_redirect_admin_options_writing` that would pass a boolean to toggle off the options writing page has been remained `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.
73
83
- `dwpb_redirect_options_tools` has been removed. Use `dwpb_redirect_admin_options_tools` instead.
74
84
- New filter: `dwpb_disabled_xmlpc_methods` (see above).
75
85
- New filter: `dwpb_author_archive_post_types` (see above).
@@ -86,10 +96,10 @@
86
96
- Updated minimum WP Core version to 4.0.
87
97
- Updated translation file for all current plugin strings.
88
98
89
-
####0.4.10
99
+
## 0.4.10
90
100
- Fix a bug from v0.4.9 that caused redirects on custom post type archives, correcting the `modify_query` function to only remove posts from built-in taxonomy archives, as that was the original intent.
91
101
92
-
####0.4.9
102
+
## 0.4.9
93
103
-**Notice:** We've added the minimum PHP version requirement of 5.3, which was not explicitly set before now.
94
104
-**Big change:** the plugin now changes the `post_type` arguments for posts so they are no longer public and removes all post_type support parameters. This disables the post-related admin redirects, as WordPress will now show users an error page stating "Sorry, you are not allowed to edit posts in this post type." It also pulls posts out of a lot of other locations (menus, etc) and is a much more efficient method of "disabling" the post type. This method is also used on built-in taxonomies, unless another post type supports them. **This change may impact other plugins or themes, be sure to back up your site and, if you can, test these changes prior to updating the plugin on a production site.**
95
105
- Disable pingbacks entirely.
@@ -111,45 +121,45 @@
111
121
- The `dwpb_author_post_types` filter is now `dwpb_archive_post_types`, as the query modification now includes all pages passing `is_archive`.
112
122
- Removed filters: `dwpb_disable_rest_api`, `dwpb_remove_post_comment_support`, `dwpb_remove_post_trackback_support`, `dwpb_redirect_admin_edit_single_post`, `dwpb_redirect_single_post_edit`, `dwpb_redirect_admin_edit_post`, `dwpb_redirect_edit`, `dwpb_redirect_admin_post_new`, `dwpb_redirect_post_new` as these are rendered obsolete by above changes.
113
123
114
-
####0.4.8.1
124
+
## 0.4.8.1
115
125
- Do'h! Forgot to update the version number in the main plugin file. Bump.
116
126
117
-
####0.4.8
127
+
## 0.4.8
118
128
- Fixed typo in variable name for current vs redirect url check. (h/t @chesio, PR #30)
119
129
- Update function names from template to `disable_blog`. (h/t @szepeviktor, PR #31)
120
130
- Add WP.org Badge to readme.md. (h/t @szepeviktor, PR #32)
121
131
- Change the name of the CI workflow to be specific to deployment. (h/t @szepeviktor, PR #33)
122
132
- Some code tidying and inline documentation.
123
133
124
-
####0.4.7
134
+
## 0.4.7
125
135
- Using GitHub actions publish on WP.org from github releases.
126
136
- Cleaned up the Reading settings, adding admin notices if front page is not set.
127
137
- Add check for Multisite to avoid network page redirects. Closes #17, props to @Mactory.
128
138
- Added Contributing and Code of Conduct documentation.
129
139
- Check that `is_singular` works prior to running redirects to avoid non-object errors in feeds.
130
140
131
-
####0.4.6
141
+
## 0.4.6
132
142
- Added check on disable feed functionality to confirm post type prior to disabling feed.
133
143
134
-
####0.4.5
144
+
## 0.4.5
135
145
- Remove the functionality hiding the Settings > Writing admin page, allow this option to be re-enabled via the older filter. This page used to be entirely related to posts, but is also used to select the editor type (Gutenberg vs Classic).
- Hide the Settings > Writing menu item, which shows up with Disable Comments enabled everywhere. Thanks to @dater for identifying.
140
150
141
-
####0.4.3
151
+
## 0.4.3
142
152
- Fix fatal error conflict with WooCommerce versions older than 2.6.3 (props to @Mahjouba91 for the heads up), no returns an array of comments in the filter for those older WooCommerce versions.
143
153
- Add de/activation hooks to clear comment caches
144
154
- Cleanup comment count functions.
145
155
146
-
####0.4.2
156
+
## 0.4.2
147
157
- Disable the REST API for 'post' post type. Props to @shawnhooper.
148
158
149
-
####0.4.1
159
+
## 0.4.1
150
160
- Fix unintended redirect for custom admin pages under tools.php. Props to @greatislander for the catch.
151
161
152
-
####0.4.0
162
+
## 0.4.0
153
163
- Refactor code to match WP Plugin Boilerplate structure, including:
154
164
- Move hooks and filters into loader class.
155
165
- Separate Admin and Public hooks.
@@ -165,22 +175,22 @@
165
175
- Fix show_on_front pages - now, if it's set to 'posts' it will set the blog page to value 0 (not a valid option) and set the front page to value 1.
166
176
- Add uninstall.php to remove plugin version saved in options table on uninstall.
167
177
168
-
####0.3.3
178
+
## 0.3.3
169
179
- Weird issue with svn, same as version 0.3.2.
170
180
171
-
####0.3.2
181
+
## 0.3.2
172
182
- Fix potential loop issue with `home_url` in redirection function.
173
183
- Fix custom taxonomy save redirect (used to redirect to dashboard, now it saves correctly).
174
184
175
-
####0.3.1
185
+
## 0.3.1
176
186
- Add/update readme.txt.
177
187
178
-
####0.3.0
188
+
## 0.3.0
179
189
- Singleton Class.
180
190
- Clean up documentation.
181
191
- Add filters.
182
192
183
-
####0.2.0
193
+
## 0.2.0
184
194
More improvements:
185
195
186
196
- Remove 'post' post type from most queries.
@@ -199,5 +209,5 @@ More improvements:
199
209
- Force Reading Settings: show_on_front, pages_for_posts, and posts_on_front, if they are not already set.
200
210
- Hide other post-related reading options, except Search Engine Visibility.
@@ -39,7 +39,7 @@ Activating Disable Blog does the following:
39
39
- Turns the `post` type into a non-public content type, with support for zero post type features. Any attempts to edit or view posts within the admin screen will be met with a WordPress error page or be redirect to the homepage.
40
40
41
41
- Front-end:
42
-
- Disables the post feed and remoives the feed links from the header (for WP >= 4.4.0) and disables the comment feed/removes comment feed link if 'post' is the only post type supporting comments (note that the default condition pages and attachments support comments).
42
+
- Disables the post feed and removes the feed links from the header (for WP >= 4.4.0) and disables the comment feed/removes comment feed link if 'post' is the only post type supporting comments (note that the default condition pages and attachments support comments).
43
43
- Removes posts from all archive pages.
44
44
- Remove 'post' post type from XML sitemaps and categories/tags from XML sitemaps, if not being used by a custom post type (WP Version 5.5).
45
45
- Disables the REST API for 'post' post type, as well as tags & categories (if not used by another custom post type).
@@ -59,7 +59,7 @@ Activating Disable Blog does the following:
59
59
- If comments are not supported by other post types (by default comments are supported by pages and attachments), it will hide the menu links for and redirect discussion options page and 'Comments' admin page to the dashboard.
60
60
- Filters out the 'post' post type from 'Comments' admin page.
61
61
- Alters the comment count to remove any comments associated with 'post' post type.
62
-
- Optionally remove/redirect the Settings > Writting page via `dwpb_remove_options_writing` filter (default is false).
62
+
- Optionally remove/redirect the Settings > Writing page via `dwpb_remove_options_writing` filter (default is false).
63
63
- Removes Available Tools from admin menu and redirects page to the dashboard (this admin page contains Press This and Category/Tag converter, both are no longer neededd without a blog).
64
64
- Removes Post from '+New' admin bar menu.
65
65
- Removes 'Posts' Admin Menu.
@@ -83,7 +83,7 @@ Activating Disable Blog does the following:
83
83
84
84
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.
85
85
86
-
####FAQ
86
+
## FAQ
87
87
88
88
1. Can I Disable Comments?
89
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.
@@ -92,10 +92,33 @@ If Settings > Reading > Front Page Displays is not set to show on a page, then s
92
92
3. How can I disable author archives?
93
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
94
95
-
####Support
95
+
## Support
96
96
97
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
98
99
-
####Contributing
99
+
## Contributing
100
100
101
101
All contributions are welcomed and considered, please refer to [contributing.md](contributing.md).
102
+
103
+
### Pull requests
104
+
All pull requests should be directed at the `develop` branch, and will be reviewed prior to merging. No pull requests will be merged with failing tests, but it's okay if you don't initially pass tests. Please create a draft pull request for proof of concept code or changes you'd like to have input on prior to review.
105
+
106
+
Please make on a branch specific to a single issue or feature. For instance, if you are suggest a solution to an issue, please create fork with a branch like `issue-894`. Or if you are proposing a new feature, create a fork with the branch name indicating the feature like `feature-example-bananas`
107
+
108
+
All improvements are merged into `develop` and then queued up for release before being merged into `stable`. Releases are deployed via github actions to wordpress.org on tagging a new release.
109
+
110
+
### Main Branches
111
+
112
+
The `stable` branch is reserved for releases and intended to be a mirror of the official current release, or `trunk` on wordpress.org.
113
+
114
+
The `develop` branch is the most current working branch. _Please direct all pull requests to the `develop` branch_
115
+
116
+
### Developing Disable Blog Locally
117
+
118
+
**Requirements:**
119
+
- Docker
120
+
- Node Package Manager (npm)
121
+
122
+
This repo contains the files needed to boot up a local development environment using [wp-env](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/).
123
+
124
+
Run `npm install` and the `npm run env:start` to boot up a local environment.
0 commit comments