Phase 2: New optimization features (v1.5.0)#22
Merged
Conversation
- Remove query strings from static assets (?ver=) - Disable self pingbacks - Disable REST API for non-authenticated users - Remove default dashboard widgets - Disable attachment pages (301 redirect) - Remove jQuery Migrate script - Disable native XML sitemaps (WP 5.5+) - Remove front-end dashicons Closes #21
…-features # Conflicts: # CHANGELOG.md # README.txt # codetot-optimization.php
khoipro
added a commit
that referenced
this pull request
Jun 26, 2026
* fix: Phase 1 bug fixes + performance improvements for v1.4.0 - B1: fix use_block_editor_for_post registered as action instead of filter - B2: fix deactivation - delete_option() never ran (wrapped in init hook) - B3: move update_option() calls from per-request admin to activation hook - B4: uninstall.php now cleans up plugin options - P1: centralize options loading via Codetot_Optimization::get_options() with static cache, eliminating duplicate DB calls Closes #19 * feat: Phase 2 new optimization features for v1.5.0 (#22) - Remove query strings from static assets (?ver=) - Disable self pingbacks - Disable REST API for non-authenticated users - Remove default dashboard widgets - Disable attachment pages (301 redirect) - Remove jQuery Migrate script - Disable native XML sitemaps (WP 5.5+) - Remove front-end dashicons Closes #21 * chore: Phase 3 code clean-up for v1.6.0 (#24) - Remove dead admin/partials/display.php (unused) - Remove empty boilerplate admin JS/CSS files - Add esc_html() to $GLOBALS['title'] output - Code style consistency for superglobal access Closes #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 — New Optimization Features
Closes #21
8 New Features
?ver=from enqueued scripts/stylesdisable_query_stringsscript_loader_src,style_loader_srcdisable_self_pingbackspre_pingdisable_rest_apirest_authentication_errorsremove_dashboard_widgetswp_dashboard_setupdisable_attachment_pagestemplate_redirectremove_jquery_migratewp_default_scriptsdisable_xml_sitemapswp_sitemaps_enabledremove_frontend_dashiconswp_enqueue_scriptsAll features are configurable via admin toggle (Settings → CT Optimization).
Files changed
admin/class-codetot-optimization-admin.php— 8 new option keys inget_global_keys()includes/class-codetot-optimization-process.php— 8 new check_* methods + constructor hookscodetot-optimization.php— v1.5.0README.txt,CHANGELOG.md— updated