Changeset 10793
- Timestamp:
- 03/07/2021 08:40:12 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/watchlist.php
r10791 r10793 49 49 } 50 50 51 if ( 'page' == $post->post_type || ( in_array( $post->post_type, self::$post_types ) && ! is_post_type_archive( self::$post_types )) ) {51 if ( in_array( $post->post_type, self::$post_types ) && ! is_post_type_archive( self::$post_types ) ) { 52 52 $watchlist = get_post_meta( $post->ID, '_wporg_watchlist', true ); 53 53 … … 104 104 105 105 $post = get_post(); 106 if ( ! $post ) { 107 return; 108 } 106 109 107 if ( 'page' == $post->post_type || ( in_array( $post->post_type, self::$post_types ) && ! is_post_type_archive( self::$post_types )) ) {110 if ( in_array( $post->post_type, self::$post_types ) && ! is_post_type_archive( self::$post_types ) ) { 108 111 $watchlist = get_post_meta( $post->ID, '_wporg_watchlist', true ); 109 112
Note: See TracChangeset
for help on using the changeset viewer.