Changeset 37220
- Timestamp:
- 04/16/2016 02:51:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r37165 r37220 2140 2140 $value = apply_filters( "post_{$field}", $value, $post_id, $context ); 2141 2141 } 2142 } 2143 2144 if ( 'attribute' == $context ) 2145 $value = esc_attr($value); 2146 elseif ( 'js' == $context ) 2147 $value = esc_js($value); 2142 2143 if ( 'attribute' == $context ) { 2144 $value = esc_attr( $value ); 2145 } elseif ( 'js' == $context ) { 2146 $value = esc_js( $value ); 2147 } 2148 } 2148 2149 2149 2150 return $value;
Note: See TracChangeset
for help on using the changeset viewer.