Changeset 59120 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 09/30/2024 05:17:54 AM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r58889 r59120 3295 3295 * @since 5.1.0 3296 3296 * @since 5.6.0 Removed 'noreferrer' relationship. 3297 * @deprecated 6.7.0 3297 3298 * 3298 3299 * @param string $text Content that may contain HTML A elements. … … 3300 3301 */ 3301 3302 function wp_targeted_link_rel( $text ) { 3303 _deprecated_function( __FUNCTION__, '6.7.0' ); 3304 3302 3305 // Don't run (more expensive) regex if no links with targets. 3303 3306 if ( stripos( $text, 'target' ) === false || stripos( $text, '<a ' ) === false || is_serialized( $text ) ) { … … 3333 3336 * @since 5.1.0 3334 3337 * @since 5.6.0 Removed 'noreferrer' relationship. 3338 * @deprecated 6.7.0 3335 3339 * 3336 3340 * @param array $matches Single match. … … 3338 3342 */ 3339 3343 function wp_targeted_link_rel_callback( $matches ) { 3344 _deprecated_function( __FUNCTION__, '6.7.0' ); 3345 3340 3346 $link_html = $matches[1]; 3341 3347 $original_link_html = $link_html; … … 3384 3390 * 3385 3391 * @since 5.1.0 3392 * @deprecated 6.7.0 3386 3393 */ 3387 3394 function wp_init_targeted_link_rel_filters() { 3388 $filters = array( 3389 'title_save_pre', 3390 'content_save_pre', 3391 'excerpt_save_pre', 3392 'content_filtered_save_pre', 3393 'pre_comment_content', 3394 'pre_term_description', 3395 'pre_link_description', 3396 'pre_link_notes', 3397 'pre_user_description', 3398 ); 3399 3400 foreach ( $filters as $filter ) { 3401 add_filter( $filter, 'wp_targeted_link_rel' ); 3402 } 3395 _deprecated_function( __FUNCTION__, '6.7.0' ); 3403 3396 } 3404 3397 … … 3407 3400 * 3408 3401 * @since 5.1.0 3402 * @deprecated 6.7.0 3409 3403 */ 3410 3404 function wp_remove_targeted_link_rel_filters() { 3411 $filters = array( 3412 'title_save_pre', 3413 'content_save_pre', 3414 'excerpt_save_pre', 3415 'content_filtered_save_pre', 3416 'pre_comment_content', 3417 'pre_term_description', 3418 'pre_link_description', 3419 'pre_link_notes', 3420 'pre_user_description', 3421 ); 3422 3423 foreach ( $filters as $filter ) { 3424 remove_filter( $filter, 'wp_targeted_link_rel' ); 3425 } 3405 _deprecated_function( __FUNCTION__, '6.7.0' ); 3426 3406 } 3427 3407
Note: See TracChangeset
for help on using the changeset viewer.