- Timestamp:
- 11/02/2023 12:02:36 AM (13 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r57038 r57053 1971 1971 */ 1972 1972 function _wp_filter_post_meta_footnotes( $footnotes ) { 1973 $footnotes_decoded 1973 $footnotes_decoded = json_decode( $footnotes, true ); 1974 1974 if ( ! is_array( $footnotes_decoded ) ) { 1975 1975 return ''; -
trunk/src/wp-includes/class-wp-block-list.php
r56803 r57053 94 94 95 95 if ( isset( $block ) && is_array( $block ) ) { 96 $block = new WP_Block( $block, $this->available_context, $this->registry ); 96 $block = new WP_Block( $block, $this->available_context, $this->registry ); 97 97 98 $this->blocks[ $offset ] = $block; 98 99 } -
trunk/src/wp-includes/media.php
r57042 r57053 2609 2609 } elseif ( ! empty( $atts['exclude'] ) ) { 2610 2610 $post_parent_id = $id; 2611 $attachments = get_children(2611 $attachments = get_children( 2612 2612 array( 2613 2613 'post_parent' => $id, … … 2622 2622 } else { 2623 2623 $post_parent_id = $id; 2624 $attachments = get_children(2624 $attachments = get_children( 2625 2625 array( 2626 2626 'post_parent' => $id, -
trunk/src/wp-includes/option.php
r57029 r57053 476 476 } elseif ( $grouped_options['no'] ) { 477 477 $alloptions = wp_load_alloptions( true ); 478 478 479 foreach ( $grouped_options['no'] as $option ) { 479 480 if ( isset( $alloptions[ $option ] ) ) { … … 481 482 } 482 483 } 484 483 485 wp_cache_set( 'alloptions', $alloptions, 'options' ); 484 486 } … … 844 846 // Update the cached value based on where it is currently cached. 845 847 $alloptions = wp_load_alloptions( true ); 848 846 849 if ( isset( $alloptions[ $option ] ) ) { 847 850 $alloptions[ $option ] = $serialized_value; … … 855 858 856 859 $alloptions = wp_load_alloptions( true ); 860 857 861 $alloptions[ $option ] = $serialized_value; 858 862 wp_cache_set( 'alloptions', $alloptions, 'options' ); … … 860 864 // Delete the alloptions cache, then set the individual cache. 861 865 $alloptions = wp_load_alloptions( true ); 866 862 867 if ( isset( $alloptions[ $option ] ) ) { 863 868 unset( $alloptions[ $option ] ); … … 1090 1095 if ( 'yes' === $row->autoload ) { 1091 1096 $alloptions = wp_load_alloptions( true ); 1097 1092 1098 if ( is_array( $alloptions ) && isset( $alloptions[ $option ] ) ) { 1093 1099 unset( $alloptions[ $option ] ); … … 1217 1223 // If option is not in alloptions, it is not autoloaded and thus has a timeout. 1218 1224 $alloptions = wp_load_alloptions(); 1225 1219 1226 if ( ! isset( $alloptions[ $transient_option ] ) ) { 1220 1227 $transient_timeout = '_transient_timeout_' . $transient; -
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
r56985 r57053 132 132 if ( ! empty( $latest_posts->posts ) ) { 133 133 $posts = wp_list_sort( $latest_posts->posts, 'post_modified_gmt', 'DESC' ); 134 134 135 $sitemap_entry['lastmod'] = wp_date( DATE_W3C, strtotime( $posts[0]->post_modified_gmt ) ); 135 136 }
Note: See TracChangeset
for help on using the changeset viewer.