summaryrefslogtreecommitdiffstats
path: root/wp-includes/rest-api
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:08:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:08:43 +0000
commit84f037a1298431a8feaff283dd7006958c0181f0 (patch)
tree4cc8a21b9865dc6c421f86ade88fd1a9a325f3be /wp-includes/rest-api
parentReleasing progress-linux version 6.5.3+dfsg1-1~progress7.99u1. (diff)
downloadwordpress-84f037a1298431a8feaff283dd7006958c0181f0.tar.xz
wordpress-84f037a1298431a8feaff283dd7006958c0181f0.zip
Merging upstream version 6.5.5+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/rest-api')
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php
index c7f72d4..c448787 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php
@@ -916,8 +916,8 @@ class WP_REST_Font_Faces_Controller extends WP_REST_Posts_Controller {
$new_path = $path;
$fonts_dir = wp_get_font_dir();
- if ( str_starts_with( $new_path, $fonts_dir['path'] ) ) {
- $new_path = str_replace( $fonts_dir, '', $new_path );
+ if ( str_starts_with( $new_path, $fonts_dir['basedir'] ) ) {
+ $new_path = str_replace( $fonts_dir['basedir'], '', $new_path );
$new_path = ltrim( $new_path, '/' );
}