Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: WordPress/wordpress-develop
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: trunk
Choose a base ref
...
head repository: Clorith/wordpress-develop
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: trunk
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 15 files changed
  • 2 contributors

Commits on Jul 4, 2026

  1. Robots: Use admin_url() for the robots.txt admin paths.

    Derive the `Disallow` and `Allow` directives in `do_robots()` from `admin_url()` and `admin_url( 'admin-ajax.php' )` rather than from a hardcoded `/wp-admin/` path built off `site_url()`. Only the URL path portion is emitted, as before, so installs that relocate or filter their admin URL now produce a correct default `robots.txt`.
    
    Also guard the `Content-Type` header with a `headers_sent()` check to avoid a warning when the headers have already been sent.
    
    Developed in #11998.
    Follow-up to r34985.
    
    Props masteradhoc, yogeshbhutkar, hrohh, westonruter, mukeshpanchal27, 1ucay.
    Fixes #63467.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@62633 602fd350-edb4-49c9-b593-d223f7449a82
    westonruter committed Jul 4, 2026
    Configuration menu
    Copy the full SHA
    1e238ce View commit details
    Browse the repository at this point in the history
  2. Site Health: Remove redundant function_exists( 'ini_get' ) checks.

    The `ini_get()` function is called unconditionally early in the bootstrap process, so there is no need for subsequent `function_exists( 'ini_get' )` checks.
    
    Follow-up to [44986], [45104].
    
    Props siliconforks, shreyasikhar26, ankitkumarshah, westonruter, SergeyBiryukov.
    Fixes #65423.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@62634 602fd350-edb4-49c9-b593-d223f7449a82
    SergeyBiryukov SergeyBiryukov
    SergeyBiryukov authored and SergeyBiryukov committed Jul 4, 2026
    Configuration menu
    Copy the full SHA
    ec8b004 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2026

  1. Docs: Modernize and improve specificity of types in WP_Error class.

    This brings the `WP_Error` class to full PHPStan rule level 10 compliance.
    
    Also make use of null coalescing operator where appropriate, and simplify `has_errors()` method.
    
    Developed in #12405.
    Follow-up to r42761, r49115, r49116.
    
    See #64898, #64897.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@62635 602fd350-edb4-49c9-b593-d223f7449a82
    westonruter committed Jul 5, 2026
    Configuration menu
    Copy the full SHA
    93b45f4 View commit details
    Browse the repository at this point in the history
  2. Filesystem: Fix subdirectory recursion in `WP_Filesystem_Direct::chgr…

    …p()` and `::chown()`.
    
    This applies the equivalent fix which had previously been done to `::chmod()`. Tests are added for all three methods.
    
    Developed in subset of #11593.
    Follow-up to r12997.
    
    Fixes #65584.
    See #65409, #11261.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@62636 602fd350-edb4-49c9-b593-d223f7449a82
    westonruter committed Jul 5, 2026
    Configuration menu
    Copy the full SHA
    f01bda1 View commit details
    Browse the repository at this point in the history
  3. Filesystem API: Improve type safety across the transport classes.

    Change the optional constructor argument of `WP_Filesystem_FTPext`, `WP_Filesystem_ftpsockets`, and `WP_Filesystem_SSH2` from an empty string default to an empty `array`, matching how the argument is actually consumed, and improve the associated DocBlocks.
    
    These classes were also brought to adherence with PHPStan rule level 10:
    
    * Add `FileListing` and `Options` array shapes, and initialize each transport's `$options` to a complete default array before any early return.
    * Correct several inaccurate `@return` descriptions, including the `group()` methods that had been describing the owner.
    * Allow `WP_Filesystem_SSH2::connect()` to be retried after a failed connection attempt.
    * Stop `WP_Filesystem_FTPext::parselisting()` from leaking its intermediate date-parsing keys into the returned listing.
    * Add `ext-ftp` and `ext-ssh2` to the suggested extensions in `composer.json`.
    
    Developed in #11593.
    Follow-up to r62635, r62636.
    
    Props soean, westonruter, mukesh27.
    See #65584, #64898.
    Fixes #65409.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@62637 602fd350-edb4-49c9-b593-d223f7449a82
    westonruter committed Jul 5, 2026
    Configuration menu
    Copy the full SHA
    2252f6d View commit details
    Browse the repository at this point in the history
Loading