Changeset 12027 for trunk/wp-includes/media.php
- Timestamp:
- 10/13/2009 10:36:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r12023 r12027 1135 1135 * Register an embed handler. This function should probably only be used for sites that do not support oEmbed. 1136 1136 * 1137 * @since 2.9.0 1137 1138 * @see WP_Embed::register_handler() 1138 1139 */ … … 1145 1146 * Unregister a previously registered embed handler. 1146 1147 * 1148 * @since 2.9.0 1147 1149 * @see WP_Embed::unregister_handler() 1148 1150 */ … … 1154 1156 /** 1155 1157 * Create default array of embed parameters. 1158 * 1159 * @since 2.9.0 1156 1160 * 1157 1161 * @return array Default embed parameters. … … 1178 1182 * Based on a supplied width/height example, return the biggest possible dimensions based on the max width/height. 1179 1183 * 1184 * @since 2.9.0 1180 1185 * @uses wp_constrain_dimensions() This function passes the widths and the heights. 1181 1186 * … … 1198 1203 * Attempts to fetch the embed HTML for a provided URL using oEmbed. 1199 1204 * 1205 * @since 2.9.0 1200 1206 * @see WP_oEmbed 1201 1207 * … … 1212 1218 return $oembed->get_html( $url, $args ); 1213 1219 } 1220 1221 /** 1222 * Adds a URL format and oEmbed provider URL pair. 1223 * 1224 * @since 2.9.0 1225 * @see WP_oEmbed 1226 * 1227 * @uses _wp_oembed_get_object() 1228 * 1229 * @param string $format The format of URL that this provider can handle. Use asterisks as wildcards. 1230 * @param string $provider The URL to the oEmbed provider. 1231 */ 1232 function wp_oembed_add_provider( $format, $provider ) { 1233 require_once( 'class-oembed.php' ); 1234 $oembed = _wp_oembed_get_object(); 1235 $oembed->providers[$format] = $provider; 1236 }
Note: See TracChangeset
for help on using the changeset viewer.