Skip to content

Bump plugin version to 1.1.0 and refactor for compatibility#147

Open
milindmore22 wants to merge 9 commits into
developfrom
version/1.1.0
Open

Bump plugin version to 1.1.0 and refactor for compatibility#147
milindmore22 wants to merge 9 commits into
developfrom
version/1.1.0

Conversation

@milindmore22
Copy link
Copy Markdown
Contributor

What

This PR introduces the v1.1.0 update, featuring a comprehensive rebranding of the plugin from "screen-options" to "advanced-screen-options". It also includes version bumps, updated WordPress compatibility, bug fixes, and critical code safety enhancements.

Why

The plugin is evolving into "Advanced Screen Options," requiring a full update of all internal references, file names, and text domains to ensure consistency and proper localization. Additionally, proactively updating compatibility for WordPress 7.0 and enforcing strict ABSPATH checks ensures the plugin remains secure, modern, and reliable for future core updates.

Related Issue(s):

How

  • Rebranding & Naming: Renamed the main plugin file to advanced-screen-options.php. Updated all text domains, asset handles, language .pot files, translation function calls, and documentation globally to reflect the new name.
  • Version & Compatibility: Bumped the version to 1.1.0 and updated the WP compatibility header to 7.0 across the plugin header, README.md, and CHANGELOG.md.
  • Security Enhancement: Added if ( ! defined( 'ABSPATH' ) ) { exit; } guards to the top of all PHP files to prevent direct URL access.
  • Refactoring: Executed general code cleanups for maintainability and expanded PHPCS ignore comments for specific hook usages to suppress erroneous style warnings.

Testing Instructions

  1. Pull this branch into your local environment.
  2. Navigate to the WordPress admin dashboard > Plugins.
  3. Deactivate the old version (if running) and activate the newly named Advanced Screen Options plugin.
  4. Verify that activation succeeds without any fatal errors or warnings.
  5. Check standard plugin functionality to ensure the renaming of asset handles hasn't broken any JavaScript or CSS loading.
  6. Security Check: Attempt to load a plugin PHP file directly in your browser (e.g., your-local-site.test/wp-content/plugins/advanced-screen-options/advanced-screen-options.php). Verify that execution is halted (blank screen) due to the new ABSPATH checks.

Screenshots

Additional Info

Please note the text domain shift; any active custom translations will need to be updated to target the advanced-screen-options domain.

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant