Changeset 56838
- Timestamp:
- 10/12/2023 12:45:49 PM (10 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r56549 r56838 3883 3883 $shortcode = wp_unslash( $_POST['shortcode'] ); 3884 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3885 3901 if ( ! empty( $_POST['post_ID'] ) ) { 3886 3902 $post = get_post( (int) $_POST['post_ID'] ); … … 3889 3905 // The embed shortcode requires a post. 3890 3906 if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) { 3891 if ( 'embed' === $shortcode) {3907 if ( ) { 3892 3908 wp_send_json_error(); 3893 3909 } -
trunk/src/wp-includes/media.php
r56743 r56838 2608 2608 } 2609 2609 } elseif ( ! empty( $atts['exclude'] ) ) { 2610 2610 2611 $attachments = get_children( 2611 2612 array( … … 2620 2621 ); 2621 2622 } else { 2623 2622 2624 $attachments = get_children( 2623 2625 array( … … 2630 2632 ) 2631 2633 ); 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2632 2645 } 2633 2646 … … 2964 2977 } 2965 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2966 2988 if ( empty( $attachments ) ) { 2967 2989 return ''; -
trunk/src/wp-includes/shortcodes.php
r56273 r56838 167 167 } 168 168 return false; 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 169 207 } 170 208
Note: See TracChangeset
for help on using the changeset viewer.