Skip to content

Conversation

@RaduCristianPopescu
Copy link
Contributor

@RaduCristianPopescu RaduCristianPopescu commented Sep 29, 2025

All Submissions:

Changes proposed in this Pull Request:

  • Added a filter for actions on the media tab to add a redirect to the Rename or Replace edit screen
  • Extended the attachment modal to add a redirect to the Rename or Replace edit screen
CleanShot 2025-09-29 at 17 10 49@2x CleanShot 2025-09-29 at 17 11 04@2x

Closes https://github.com/Codeinwp/optimole-service/issues/1569

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the visibility of the rename/replace feature in Optimole's WordPress media library by adding new entry points for users to access this functionality. The changes introduce a "Replace or Rename" action link in the media library list view and modal views.

  • Adds "Replace or Rename" action to media library list view row actions
  • Extends media modal views to include the rename/replace button
  • Enqueues necessary JavaScript to handle modal interactions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
inc/media_rename/attachment_edit.php Adds media row action filter and modal JavaScript enqueuing for upload.php
assets/js/modal-attachment.js New JavaScript file that extends WordPress media views to add replace/rename buttons

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pirate-bot
Copy link
Collaborator

pirate-bot commented Sep 29, 2025

Plugin build for 3391017 is ready 🛎️!

@selul selul merged commit 3796848 into development Oct 1, 2025
11 checks passed
@selul selul deleted the refactor/inc_visibility_feat branch October 1, 2025 19:32
@pirate-bot
Copy link
Collaborator

🎉 This PR is included in version 4.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Indicate that an issue has been resolved and released in a particular version of the product.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants