Skip to content

Comments

rename text in images#273

Merged
superdav42 merged 10 commits intomainfrom
boofola
Nov 21, 2025
Merged

rename text in images#273
superdav42 merged 10 commits intomainfrom
boofola

Conversation

@superdav42
Copy link
Collaborator

@superdav42 superdav42 commented Nov 21, 2025

Summary by CodeRabbit

  • Chores

    • Released version 2.4.8 and updated package/author metadata and credits for the repository migration.
  • Documentation

    • Updated README, install/clone instructions, badges, release/workflow/CI, support, and contributor/community links to the new repository.
    • Updated translation metadata (POT header and source reference locations).
  • Bug Fixes

    • Ensured filesystem utilities are loaded on demand to prevent initialization errors.

✏️ Tip: You can customize this high-level summary in your review settings.

Boofola and others added 5 commits November 17, 2025 10:43
This is an update and collaboration to Ultimate Multisite, based on WP Ultimo, which was based on Pro Sites.
Changed all base images to reflect the new Ultimate Multisite name.
Simply added a white version of the logo to display on dark backgrounds. This was done quickly and needs to be re-done later.
Removed some embedded code for better and quicker integration. Also, preparing to add a few enhancements.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 21, 2025

Walkthrough

Bumps plugin version to 2.4.8, updates repository references/badges to Multisite-Ultimate/ultimate-multisite, regenerates POT with updated source line references, and adds lazy loading of WP_Filesystem in inc/duplication/files.php.

Changes

Cohort / File(s) Summary
Repository rebranding
README.md
Replaced repository paths and URLs (logo, release badges, CI/workflow badges, Codecov, Releases, Actions, support/issues, contributors/community links) from superdav42/wp-multisite-waas to Multisite-Ultimate/ultimate-multisite. Updated install/clone instructions and credits links.
Version & plugin headers
inc/class-wp-ultimo.php, readme.txt, ultimate-multisite.php
Bumped version from 2.4.72.4.8. Updated plugin header Author/Author URI/GitHub Plugin URI, added WPMUDEV to author list, changed package name from WP_UltimoUltimate_Multisite, updated @version/@package, and added end-of-file comment.
Translation metadata
lang/ultimate-multisite.pot
Regenerated POT header timestamp and updated source-reference line numbers for multiple msgid entries to reflect new locations in PHP source files; message strings unchanged.
Filesystem lazy-load
inc/duplication/files.php
Added conditional inclusion of wp-admin/includes/file.php / lazy-loading of WP_Filesystem before calling related functions; added header comment and phpcs:ignore directive. No public API signature changes.

Sequence Diagram(s)

sequenceDiagram
    participant Caller as Caller (code using files.php)
    participant Files as inc/duplication/files.php
    participant FS as WP_Filesystem (WP core)

    Caller->>Files: call init_dir / rrmdir
    Files->>Files: if !defined('WP_Filesystem')
    alt WP_Filesystem not loaded
        Files->>Files: include 'wp-admin/includes/file.php'
        Files->>FS: WP_Filesystem() initialization
    else WP_Filesystem already available
        Note right of Files: proceed without include
    end
    Files->>FS: perform filesystem operations (mkdir/rmdir, etc.)
    Files-->>Caller: return result
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Inspect inc/duplication/files.php lazy-load logic and ensure include path and conditional are correct for multisite and WP versions.
  • Verify version bumps in inc/class-wp-ultimo.php, readme.txt, and ultimate-multisite.php are consistent and update any related build/release metadata.
  • Spot-check updated README links/badges for leftover old references.
  • Confirm POT source references match actual file line numbers after changes.

Poem

🐰 A tiny hop — the version climbs anew,
Badges swapped, the links march to a new view.
I fetched the files, ensured the fs would load,
Lines shifted gently in the translation road.
Little rabbit cheers: release, away we go!

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title 'rename text in images' does not accurately describe the main changes in this pull request. The PR primarily updates repository references (from superdav42/wp-multisite-waas to Multisite-Ultimate/ultimate-multisite), bumps version numbers (2.4.7 to 2.4.8), and improves WP_Filesystem lazy loading. Revise the title to reflect one of these main changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch boofola

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
readme.txt (2)

223-223: Update the repository URL to match the new branding.

This line still references the old repository path superdav42/wp-multisite-waas. Based on the updates elsewhere in this PR, it should be updated to the new repository path.

Apply this diff:

-For support, please open an issue on the [GitHub repository](https://github.com/superdav42/wp-multisite-waas/issues).
+For support, please open an issue on the [GitHub repository](https://github.com/Multisite-Ultimate/ultimate-multisite/issues).

336-336: Fix the incorrect repository URL.

This URL references superdav42/multisite-ultimate which appears to be incorrect. The repository name should be ultimate-multisite (not multisite-ultimate) based on the other updates in this PR.

Apply this diff:

-For the complete changelog history, visit: https://github.com/superdav42/multisite-ultimate/releases
+For the complete changelog history, visit: https://github.com/Multisite-Ultimate/ultimate-multisite/releases
lang/ultimate-multisite.pot (1)

5-5: POT header still reports version 2.4.7

Project-Id-Version is still Ultimate Multisite 2.4.7, but the PR bumps the plugin to 2.4.8. Consider updating this header (or regenerating the POT via wp i18n make-pot) so translation tooling reflects the correct release.

🧹 Nitpick comments (1)
ultimate-multisite.php (1)

130-130: End-of-file comment is a minor style addition.

This comment doesn't add functional value but is harmless. Consider whether this style is needed consistently across other PHP files in the project.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 994d08b and b252dc4.

📒 Files selected for processing (5)
  • README.md (9 hunks)
  • inc/class-wp-ultimo.php (1 hunks)
  • lang/ultimate-multisite.pot (5 hunks)
  • readme.txt (1 hunks)
  • ultimate-multisite.php (3 hunks)
🔇 Additional comments (6)
readme.txt (1)

8-8: LGTM - Version bump is correct.

The stable tag has been updated to 2.4.8, which is consistent with the version updates in other files.

inc/class-wp-ultimo.php (1)

34-34: LGTM - Version constant updated correctly.

The VERSION constant has been updated to '2.4.8', which is consistent with the version updates across the codebase.

ultimate-multisite.php (2)

7-7: LGTM - Version header updated correctly.

The plugin version has been updated to 2.4.8, consistent with other files in this PR.


30-33: LGTM - Metadata updates are appropriate.

The author list, package name, and version updates are consistent with the repository rebranding.

README.md (1)

4-4: LGTM - Repository URLs updated consistently.

All repository references have been updated from superdav42/wp-multisite-waas to Multisite-Ultimate/ultimate-multisite. The changes are comprehensive and consistent throughout the documentation.

Also applies to: 16-16, 19-22, 54-54, 91-91, 103-103, 114-114, 194-194, 304-304, 310-310

lang/ultimate-multisite.pot (1)

12-12: Auto-generated POT timestamp and source references look fine

The updated POT-Creation-Date and the adjusted #: inc/list-tables/class-payment-list-table.php:… references are standard artifacts of regenerating the POT after PHP line shifts; no functional impact from these changes.

Also applies to: 1420-1430, 16640-16650

superdav42 and others added 4 commits November 21, 2025 12:21
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
inc/duplication/files.php (1)

122-124: Overly permissive file permissions.

Using chmod with 0777 grants read, write, and execute permissions to all users. This could allow unauthorized modification of upload directories.

Consider using more restrictive permissions like 0755 (owner rwx, group/others rx) or 0775 (owner/group rwx, others rx):

-return $wp_filesystem->mkdir($path, 0777);
+return $wp_filesystem->mkdir($path, 0755);
-return $wp_filesystem->chmod($path, 0777, true);
+return $wp_filesystem->chmod($path, 0755, true);
🧹 Nitpick comments (2)
inc/duplication/files.php (2)

115-127: Consider using the same WP_Filesystem check as recurse_copy.

The recurse_copy method (lines 71-74) checks if ( ! $wp_filesystem ) which verifies the global is actually initialized, while this checks function_exists('WP_Filesystem'). The former is more robust because the function could exist but the global might not be initialized yet.

For consistency, consider this pattern:

-if ( ! function_exists('WP_Filesystem')) {
-    require_once ABSPATH . 'wp-admin/includes/file.php';
-}
 /** @var $wp_filesystem WP_Filesystem_Base */
 global $wp_filesystem;
+if ( ! $wp_filesystem ) {
+    require_once ABSPATH . 'wp-admin/includes/file.php';
+    WP_Filesystem();
+}
-WP_Filesystem();

This approach checks the actual initialization state rather than just function existence.


136-143: Same consistency suggestion as init_dir.

This has the same pattern inconsistency as init_dir. Consider using the recurse_copy approach that checks the global variable state:

-if ( ! function_exists('WP_Filesystem')) {
-    require_once ABSPATH . 'wp-admin/includes/file.php';
-}
 /** @var $wp_filesystem WP_Filesystem_Base */
 global $wp_filesystem;
+if ( ! $wp_filesystem ) {
+    require_once ABSPATH . 'wp-admin/includes/file.php';
+    WP_Filesystem();
+}
-WP_Filesystem();
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between eee8420 and 03a3df0.

📒 Files selected for processing (1)
  • inc/duplication/files.php (3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: PHP 8.4
  • GitHub Check: cypress (8.1, chrome)
  • GitHub Check: cypress (8.2, chrome)
🔇 Additional comments (1)
inc/duplication/files.php (1)

1-4: LGTM - Documentation improvement.

The added header comment and PHPCS directive properly document the file and suppress a known filename convention warning.

@superdav42 superdav42 merged commit 237406d into main Nov 21, 2025
10 checks passed
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.

2 participants