WordPress.org

Make WordPress Core

Ticket #34983: wp-includes_shortcodes.php.patch

File wp-includes_shortcodes.php.patch, 396 bytes (added by mikelopez, 6 years ago)
Line 
1348a349
2>       global $post;
3397a399,402
4>               if ( in_the_loop() ) {
5>                       $user_is_admin = user_can( $post->post_author, 'administrator' );
6>               }
7>
8407c412
9<                       if ( ( false === $single || $open < $single ) && ( false === $double || $open < $double ) ) {
10---
11>                       if ( true === $user_is_admin || ( ( false === $single || $open < $single ) && ( false === $double || $open < $double ) ) ) {
12611a617
13>