[wp-trac] [WordPress Trac] #65203: Tests: Add unit tests for wp_check_php_version()

WordPress Trac noreply at wordpress.org
Thu May 7 17:44:05 UTC 2026


#65203: Tests: Add unit tests for wp_check_php_version()
----------------------------+-----------------------------
 Reporter:  pbearne         |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:  tests           |
----------------------------+-----------------------------
 This ticket adds comprehensive unit tests for the wp_check_php_version()
 function in wp-admin/includes/misc.php. The tests will cover API response
 handling, transient caching, the wp_is_php_version_acceptable filter, and
 future minimum version logic (e.g., forcing warnings for PHP < 8.0).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65203>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list