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

Enhance field indexing and schema management, and update README and c… #42

Merged
merged 2 commits into from
Mar 8, 2025

Conversation

soderlind
Copy link
Owner

This pull request includes several updates aimed at enhancing the WP Loupe plugin's functionality, improving field indexing, and refining the schema manager. The key changes include the introduction of a new filter for field modification, updates to the version number, and additional safeguards in the initialization process.

Enhancements and Improvements:

  • Enhanced field indexing to strictly respect settings configuration, improved schema manager to only include explicitly selected fields, and refined factory class to ensure proper field filtering from settings. Added a new filter wp_loupe_field_{$field_name} to allow field modification (CHANGELOG.md, README.md, includes/class-wp-loupe-indexer.php) [1] [2] [3] [4].

Version Updates:

  • Updated the version number from 0.2.2 to 0.2.3 in composer.json, package.json, readme.txt, and wp-loupe.php to reflect the new release (composer.json, package.json, readme.txt, wp-loupe.php) [1] [2] [3] [4].

Initialization Safeguards:

  • Added additional checks in the init function to prevent running setup during autosave, WP CLI, and AJAX requests (wp-loupe.php).

Documentation Updates:

  • Updated README.md and readme.txt to document the new filter and changes in field indexing behavior (README.md, readme.txt) [1] [2].

Codebase Adjustments:

  • Moved the init call after register_hooks in the __construct method of WP_Loupe_Indexer to ensure hooks are registered before initialization (includes/class-wp-loupe-indexer.php).

@soderlind soderlind requested a review from Copilot March 8, 2025 23:07

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR enhances the WP Loupe plugin's functionality with improvements to field indexing, schema management, and documentation updates.

  • Introduces a new filter to allow dynamic field modification.
  • Updates version numbers across multiple files to reflect the new release.
  • Adds safeguards in the initialization process to prevent unintended execution during autosave, WP CLI, and AJAX requests.

Reviewed Changes

File Description
README.md Updated to document the new dynamic filter wp_loupe_field_{$field_name}.
CHANGELOG.md Added changelog entries for the enhancements and version bump.

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

@soderlind soderlind merged commit 4b7d77a into main Mar 8, 2025
3 checks passed
@soderlind soderlind deleted the strip/comments branch March 8, 2025 23:09
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