Changeset 57192 for trunk/src/wp-includes/bookmark.php
- Timestamp:
- 12/15/2023 02:31:56 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/bookmark.php
r57191 r57192 23 23 */ 24 24 function get_bookmark( $bookmark, $output = OBJECT, $filter = 'raw' ) { 25 global $ link, $wpdb;25 global $wpdb; 26 26 27 27 if ( empty( $bookmark ) ) { 28 if ( isset( $ link) ) {29 $_bookmark = & $link;28 if ( isset( $GLOBALS['link'] ) ) { 29 $_bookmark = & $GLOBALS['link']; 30 30 } else { 31 31 $_bookmark = null; … … 35 35 $_bookmark = $bookmark; 36 36 } else { 37 if ( isset( $ link ) && ( $link->link_id == $bookmark ) ) {38 $_bookmark = & $link;37 if ( isset( $GLOBALS['link'] ) && ( $GLOBALS['link']->link_id == $bookmark ) ) { 38 $_bookmark = & $GLOBALS['link']; 39 39 } else { 40 40 $_bookmark = wp_cache_get( $bookmark, 'bookmark' );
Note: See TracChangeset
for help on using the changeset viewer.