Changeset 12733 for trunk/wp-includes/functions.php
- Timestamp:
- 01/15/2010 10:11:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r12727 r12733 577 577 do_action( "add_option_{$name}", $name, $value ); 578 578 do_action( 'added_option', $name, $value ); 579 579 580 580 return; 581 581 } … … 2308 2308 'mid|midi' => 'audio/midi', 2309 2309 'wma' => 'audio/wma', 2310 'mka' => 'audio/x-matroska', 2311 'mkv' => 'video/x-matroska', 2310 'mka' => 'audio/x-matroska', 2311 'mkv' => 'video/x-matroska', 2312 2312 'rtf' => 'application/rtf', 2313 2313 'js' => 'application/javascript', … … 3393 3393 * If the transient does not exist or does not have a value, then the return value 3394 3394 * will be false. 3395 * 3395 * 3396 3396 * @since 2.9.0 3397 3397 * @package WordPress … … 3679 3679 $selected = 'selected="selected" '; 3680 3680 $structure[] = '<option ' . $selected . 'value="' . esc_attr( $offset_value ) . '">' . esc_html( $offset_name ) . "</option>"; 3681 3681 3682 3682 } 3683 3683 $structure[] = '</optgroup>'; … … 3746 3746 * Parse the file contents to retrieve its metadata. 3747 3747 * 3748 * Searches for metadata for a file, such as a plugin or theme. Each piece of 3748 * Searches for metadata for a file, such as a plugin or theme. Each piece of 3749 3749 * metadata must be on its own line. For a field spanning multple lines, it 3750 3750 * must not have any newlines or only parts of it will be displayed. … … 3766 3766 * @param string $file Path to the file 3767 3767 * @param bool $markup If the returned data should have HTML markup applied 3768 * @param string $context If specified adds filter hook "extra_<$context>_headers" 3768 * @param string $context If specified adds filter hook "extra_<$context>_headers" 3769 3769 */ 3770 3770 function get_file_data( $file, $default_headers, $context = '' ) { … … 3790 3790 } 3791 3791 3792 3792 3793 3793 foreach ( $all_headers as $field => $regex ) { 3794 3794 preg_match( '/' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, ${$field}); … … 3800 3800 3801 3801 $file_data = compact( array_keys( $all_headers ) ); 3802 3802 3803 3803 return $file_data; 3804 3804 } 3805 3805 /* 3806 3806 * Used internally to tidy up the search terms 3807 * 3807 * 3808 3808 * @private 3809 3809 * @since 2.9.0
Note: See TracChangeset
for help on using the changeset viewer.