Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.5.0 #48

Closed
wants to merge 56 commits into from
Closed

v0.5.0 #48

wants to merge 56 commits into from

Conversation

joshuadavidnelson
Copy link
Owner

@joshuadavidnelson joshuadavidnelson commented Dec 19, 2020

New:

  • Redirecting Author archives to homepage. Includes new dwpb_author_archive_post_types filter to provide author archive support for custom post types. Pass an array of post type slugs to this filter and the redirect goes away, author archives support those post types, and the user sitemap stays in place. Default is to remove the archives entirely, since posts are the only post type that show up on these archives.
  • Remove user sitemaps unless author archives are supported by custom post types via the filter noted above.
  • Replace the "Posts" column on the user admin screen by a "Pages" column, also adds similar columns for custom post types using the filter noted above.
  • Remove the "view" link to author archives in the user screen if author archives are not supported.
  • Update the post tag and category "count" columns to correctly show the number of posts by post type, for use with custom post types supporting built-in taxonomies.
  • Update the customizer "Homepage" view to match the Reading options page view, when homepage is set.
  • Update the default posts page admin notice indicating the blog is redirected.
  • Add javascript to hide admin screen items not easily selected by CSS, include:
    • Hiding toggle comment link on welcome screen (if they are not supported by other post types),
    • Hiding the category and tag permalink base options (if not supported by other post types), and
    • Hiding the default category & default post format on Writing options page.

Fixes:

  • Bring back some admin page redirects to account for use cases where direct access to post.php, post-new.php, etc occur. Closes Add admin redirects back to account for direct access to post-new.php #45.
  • 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 Remove REST API Site Health check #46.
  • Fix issue with Reading Settings link in admin notice outputting raw HTML instead of a link. Closes Un-escape the Reading Settings link in admin notice #47.
  • 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.

Improvements/Updates:

  • Update admin filters to a common format and removing redundent filters. Filter changes include:
    • New filter: dwpb_redirect_admin_url filters the final url used in admin redirects.
    • dwpb_redirect_admin only accepts 2 parameters, the previous version accepted 3 (dropping $current_url).
    • dwpb_redirect_admin_edit_post is now dwpb_redirect_admin_edit.
    • dwpb_redirect_single_post_edit is now dwpb_redirect_admin_post.
    • dwpb_redirect_admin_edit_single_post is now dwpb_redirect_admin_edit.
    • dwpb_redirect_edit_tax has been removed. Use dwpb_redirect_admin_edit_tags or dwpb_redirect_admin_term instead, depending on the context.
    • dwpb_redirect_edit_comments has been removed. use dwpb_redirect_admin_edit_comments instead.
    • dwpb_redirect_options_discussion has been removed. Use dwpb_redirect_admin_options_discussion instead.
    • 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.
    • dwpb_redirect_options_tools has been removed. Use dwpb_redirect_admin_options_tools instead.
  • Update public redirect filters to match the pattern used for the new admin redirects. Filer changes include:
    • New filter: dwpb_front_end_redirect_url filters the final url used in front end redirects.
    • New filter: dwpb_redirect_author_archive to change the redirect used on author archives.
    • New filter: dwpb_disable_user_sitemap to change the user sitemap default, pass "false" to keep the sitemap in place. Using the author archive post type filter will impact the sitemap - if author archives are enabled for custom post types, then the sitemap is on.
    • dwpb_redirect_posts is now dwpb_redirect_post.
    • dwpb_redirect_post_{$post->ID} filter has been removed. Use dwpb_redirect_post and check for the post id to target a specific post.
    • dwpb_redirect_front_end only accepts 2 parameters, the previous version accepted 3 (dropping $current_url).
  • Bump minimum PHP to 5.6.
  • Tested up to WP Core version 5.6.
  • Updated minimum WP Core version to 4.0.
  • Updated translation file for all current plugin strings.

@joshuadavidnelson joshuadavidnelson added enhancement wip work in progress, do not merge labels Dec 19, 2020
@joshuadavidnelson joshuadavidnelson added this to the v0.4.11 milestone Dec 19, 2020
@joshuadavidnelson joshuadavidnelson self-assigned this Dec 19, 2020
@joshuadavidnelson joshuadavidnelson changed the title v0.4.11 v0.5.0 Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement wip work in progress, do not merge
Projects
None yet
1 participant