Changeset 12096 for trunk/wp-includes/media.php
- Timestamp:
- 10/23/2009 07:33:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r12042 r12096 1263 1263 * @uses _wp_oembed_get_object() 1264 1264 * 1265 * @param string $format The format of URL that this provider can handle. Use asterisks as wildcards.1265 * @param string $format The format of URL that this provider can handle. You can use asterisks as wildcards. 1266 1266 * @param string $provider The URL to the oEmbed provider. 1267 */ 1268 function wp_oembed_add_provider( $format, $provider ) { 1267 * @param boolean $regex Whether the $format parameter is in a regex format or not. 1268 */ 1269 function wp_oembed_add_provider( $format, $provider, $regex = false ) { 1269 1270 require_once( 'class-oembed.php' ); 1270 1271 $oembed = _wp_oembed_get_object(); 1271 $oembed->providers[$format] = $provider;1272 } 1272 $oembed->providers[$format] = array( $provider, $regex ); 1273 }
Note: See TracChangeset
for help on using the changeset viewer.