Changeset 59674 for trunk/src/wp-includes/class-walker-nav-menu.php
- Timestamp:
- 01/21/2025 09:24:59 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-nav-menu.php
r59179 r59674 41 41 42 42 /** 43 * The URL to the privacy policy page. 44 * 45 * @since 6.8.0 46 * @var string 47 */ 48 private $privacy_policy_url; 49 50 /** 51 * Constructor. 52 * 53 * @since 6.8.0 54 */ 55 public function __construct() { 56 $this->privacy_policy_url = get_privacy_policy_url(); 57 } 58 59 /** 43 60 * Starts the list before the elements are added. 44 61 * … … 237 254 238 255 if ( ! empty( $menu_item->url ) ) { 239 if ( get_privacy_policy_url()=== $menu_item->url ) {256 if ( $this->privacy_policy_url === $menu_item->url ) { 240 257 $atts['rel'] = empty( $atts['rel'] ) ? 'privacy-policy' : $atts['rel'] . ' privacy-policy'; 241 258 }
Note: See TracChangeset
for help on using the changeset viewer.