Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix merge
  • Loading branch information
matiasbenedetto committed Dec 14, 2023
commit 770c5b55d9f18ab5144b1c5784b37cae0d31a68f
4 changes: 0 additions & 4 deletions lib/experimental/fonts/font-library/font-library.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ function wp_register_font_collection( $config ) {
*/
function sanitize_font_family_content( $data, $postarr, $unsanitized_postarr ) {
// Check if the post type is 'wp_font_family'.
<<<<<<< HEAD
if ( isset( $postarr['post_type'] ) && 'wp_font_family' === $postarr['post_type'] ) {
=======
if ( isset( $postarr['post_type'] ) && 'wp_font_family' === $postarr['post_type'] && isset( $unsanitized_postarr['post_content'] ) ) {
>>>>>>> 122b193bcac5b68a575284ae850afea32c2d1aaa
$data['post_content'] = WP_Font_Family_Utils::sanitize( $unsanitized_postarr['post_content'] );
}
// Return the (possibly modified) data.
Expand Down