Changeset 47808 for trunk/src/wp-includes/bookmark.php
- Timestamp:
- 05/16/2020 06:40:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/bookmark.php
r47550 r47808 419 419 } 420 420 421 if ( 'raw' == $context ) {421 if ( 'raw' === $context ) { 422 422 return $value; 423 423 } 424 424 425 if ( 'edit' == $context ) {425 if ( 'edit' === $context ) { 426 426 /** This filter is documented in wp-includes/post.php */ 427 427 $value = apply_filters( "edit_{$field}", $value, $bookmark_id ); 428 428 429 if ( 'link_notes' == $field ) {429 if ( 'link_notes' === $field ) { 430 430 $value = esc_html( $value ); // textarea_escaped 431 431 } else { 432 432 $value = esc_attr( $value ); 433 433 } 434 } elseif ( 'db' == $context ) {434 } elseif ( 'db' === $context ) { 435 435 /** This filter is documented in wp-includes/post.php */ 436 436 $value = apply_filters( "pre_{$field}", $value ); … … 439 439 $value = apply_filters( "{$field}", $value, $bookmark_id, $context ); 440 440 441 if ( 'attribute' == $context ) {441 if ( 'attribute' === $context ) { 442 442 $value = esc_attr( $value ); 443 } elseif ( 'js' == $context ) {443 } elseif ( 'js' === $context ) { 444 444 $value = esc_js( $value ); 445 445 }
Note: See TracChangeset
for help on using the changeset viewer.