Migration from legacy helpers
The compatibility methods below remain callable unless noted otherwise, but new code should use their replacements. They can be removed in the next major release after downstream callers have migrated.
Legacy API |
Replacement |
|---|---|
|
|
|
|
|
|
|
PHP’s |
|
String interpolation |
|
An explicit |
|
Explicit validation followed by an integer cast |
|
|
|
Base64 functions in an encoding component |
|
|
|
|
|
A local counter |
|
|
|
|
|
|
|
Omit it; search engines ignore meta keywords |
|
Feature detection, Client Hints, or a maintained parser |
Directory_Lister::listing() is now data-only. It no longer prints debug HTML
when print is supplied and no longer adds an open anchor to each file row.
The ignored cURL binary_transfer response option was removed because its PHP
constant is deprecated. Email::show() and Email::mailto() now return safe
HTML directly rather than generating calls to document.write().