Changeset 57191
- Timestamp:
- 12/15/2023 12:57:07 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/bookmark.php
r56177 r57191 12 12 * @since 2.1.0 13 13 * 14 * @global wpdb $wpdb WordPress database abstraction object. 14 * @global object $link Current link object. 15 * @global wpdb $wpdb WordPress database abstraction object. 15 16 * 16 17 * @param int|stdClass $bookmark … … 22 23 */ 23 24 function get_bookmark( $bookmark, $output = OBJECT, $filter = 'raw' ) { 24 global $ wpdb;25 global $link, $wpdb; 25 26 26 27 if ( empty( $bookmark ) ) { 27 if ( isset( $ GLOBALS['link']) ) {28 $_bookmark = & $GLOBALS['link'];28 if ( isset( $link ) ) { 29 $_bookmark = &$link; 29 30 } else { 30 31 $_bookmark = null; … … 34 35 $_bookmark = $bookmark; 35 36 } else { 36 if ( isset( $ GLOBALS['link'] ) && ( $GLOBALS['link']->link_id == $bookmark ) ) {37 $_bookmark = & $GLOBALS['link'];37 if ( isset( $link ) && ( $link->link_id == $bookmark ) ) { 38 $_bookmark = &$link; 38 39 } else { 39 40 $_bookmark = wp_cache_get( $bookmark, 'bookmark' );
Note: See TracChangeset
for help on using the changeset viewer.