WordPress/wp-includes/rest-api/endpoints
Sergey Biryukov 32e94b4de1 Code Modernization: Use `str_starts_with()` and `str_ends_with()` in a few more places.
`str_starts_with()` and `str_ends_with()` were introduced in PHP 8.0 to perform a case-sensitive check indicating if the string to search in (haystack) begins or ends with the given substring (needle).

WordPress core includes a polyfill for these functions on PHP < 8.0 as of WordPress 5.9.

Follow-up to [55990], [56014].

See #58220.
Built from https://develop.svn.wordpress.org/trunk@56019


git-svn-id: http://core.svn.wordpress.org/trunk@55531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-06-24 16:50:24 +00:00
..
class-wp-rest-application-passwords-controller.php
class-wp-rest-attachments-controller.php Code Modernization: Use `str_starts_with()` and `str_ends_with()` in a few more places. 2023-06-24 16:50:24 +00:00
class-wp-rest-autosaves-controller.php Code Modernization: Replace usage of `strpos()` with `str_contains()`. 2023-06-22 14:36:26 +00:00
class-wp-rest-block-directory-controller.php
class-wp-rest-block-pattern-categories-controller.php
class-wp-rest-block-patterns-controller.php
class-wp-rest-block-renderer-controller.php
class-wp-rest-block-types-controller.php
class-wp-rest-blocks-controller.php
class-wp-rest-comments-controller.php
class-wp-rest-controller.php
class-wp-rest-edit-site-export-controller.php
class-wp-rest-global-styles-controller.php
class-wp-rest-menu-items-controller.php General: Use `static` on closures whenever `$this` is not used to avoid memory leaks. 2023-05-17 22:46:24 +00:00
class-wp-rest-menu-locations-controller.php
class-wp-rest-menus-controller.php General: Use `static` on closures whenever `$this` is not used to avoid memory leaks. 2023-05-17 22:46:24 +00:00
class-wp-rest-pattern-directory-controller.php
class-wp-rest-plugins-controller.php Code Modernization: Replace usage of `strpos()` with `str_contains()`. 2023-06-22 14:36:26 +00:00
class-wp-rest-post-statuses-controller.php
class-wp-rest-post-types-controller.php
class-wp-rest-posts-controller.php
class-wp-rest-revisions-controller.php
class-wp-rest-search-controller.php
class-wp-rest-settings-controller.php
class-wp-rest-sidebars-controller.php
class-wp-rest-site-health-controller.php
class-wp-rest-taxonomies-controller.php
class-wp-rest-templates-controller.php REST API: return post modified datetime for Templates. 2023-06-23 06:29:23 +00:00
class-wp-rest-terms-controller.php
class-wp-rest-themes-controller.php REST API: Indicate when a theme supports the Site editor in the Themes REST API response. 2023-06-20 22:17:27 +00:00
class-wp-rest-url-details-controller.php
class-wp-rest-users-controller.php Code Modernization: Replace usage of `strpos()` with `str_contains()`. 2023-06-22 14:36:26 +00:00
class-wp-rest-widget-types-controller.php
class-wp-rest-widgets-controller.php