File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,14 @@ function register_meta() {
115
115
'post ' ,
116
116
'podcast_transcript ' ,
117
117
array (
118
- 'show_in_rest ' => true ,
119
- 'type ' => 'string ' ,
120
- 'single ' => true ,
118
+ 'show_in_rest ' => true ,
119
+ 'type ' => 'string ' ,
120
+ 'single ' => true ,
121
+ 'sanitize_callback ' => function ( $ val ) {
122
+ return wp_kses_post ( $ val );
123
+ },
124
+ )
125
+ );
121
126
122
127
\register_term_meta (
123
128
'podcasting_podcasts ' ,
Original file line number Diff line number Diff line change 25
25
$ podcast_slug = get_query_var ( 'podcasting-episode ' );
26
26
$ post_object = get_page_by_path ( $ podcast_slug , OBJECT , 'post ' );
27
27
if ( $ post_object instanceof WP_Post ) {
28
- echo wp_kses_post (
29
- tenup_podcasting \transcripts \podcasting_wrap_unwrapped_text_in_paragraph (
30
- get_post_meta ( $ post_object ->ID , 'podcast_transcript ' , true )
31
- )
28
+ echo tenup_podcasting \transcripts \podcasting_wrap_unwrapped_text_in_paragraph ( // phpcs:ignore WordPress.Security.EscapeOutput
29
+ get_post_meta ( $ post_object ->ID , 'podcast_transcript ' , true )
32
30
);
33
31
}
34
32
?>
You can’t perform that action at this time.
0 commit comments