Changeset 4827
- Timestamp:
- 01/29/2017 01:06:41 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/functions.php
r4826 r4827 76 76 77 77 function welcome_box() { 78 global $post; 79 78 80 $welcome = get_page_by_path( 'welcome' ); 79 81 $cookie = 'welcome-' . get_current_blog_id(); … … 86 88 $welcome->post_content = "<div class='content-area'>\n\n{$columns[0]}</div><div class='widget-area'>\n\n{$columns[1]}</div>"; 87 89 } 90 91 $post_backup = $post; 92 $post = $welcome; // setup_postdata() doesn't update the global, do it manually to ensure correct context for `the_content` filters. 88 93 setup_postdata( $welcome ); 89 94 … … 103 108 remove_filter( 'sharing_show', '__return_false' ); 104 109 wp_reset_postdata(); 110 $post = $post_backup; 105 111 endif; 106 112 }
Note: See TracChangeset
for help on using the changeset viewer.