has_control( $suffixed ) ) { return null; } return $suffixed; } /** * Applies the responsive-suffix rule across an entire patch (typography group case). * * @param array $patch * @return array */ public function suffix_patch( array $patch, string $breakpoint, V3_Context_Meta $meta ): array { $suffixed = []; foreach ( $patch as $key => $value ) { if ( str_ends_with( (string) $key, '_typography' ) ) { $suffixed[ $key ] = $value; continue; } $candidate = $key . '_' . $breakpoint; if ( $meta->has_control( $candidate ) ) { $suffixed[ $candidate ] = $value; continue; } $suffixed[ $key ] = $value; } return $suffixed; } }