Changeset 4937 for trunk/bp-core/bp-core-classes.php
- Timestamp:
- 08/06/2011 04:24:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r4934 r4937 1169 1169 ksort( $this->handlers ); 1170 1170 foreach ( $this->handlers as $priority => $handlers ) { 1171 foreach ( $handlers as $ id => $handler ) {1171 foreach ( $handlers as $hid => $handler ) { 1172 1172 if ( preg_match( $handler['regex'], $url, $matches ) && is_callable( $handler['callback'] ) ) { 1173 1173 if ( false !== $return = call_user_func( $handler['callback'], $matches, $attr, $url, $rawattr ) ) … … 1178 1178 1179 1179 // Get object ID 1180 $id = apply_filters( 'embed_post_id', $id);1180 $id = apply_filters( 'embed_post_id', 0 ); 1181 1181 1182 1182 // Is oEmbed discovery on? … … 1220 1220 */ 1221 1221 function parse_oembed( $id, $url, $attr, $rawattr ) { 1222 $id = intval( $id ); 1223 1222 1224 if ( $id ) { 1223 1225 // Setup the cachekey … … 1230 1232 // Grab cache and return it if available 1231 1233 if ( !empty( $cache ) ) { 1232 return apply_filters( ' embed_oembed_html', $cache, $url, $attr, $rawattr );1234 return apply_filters( 'bp_embed_oembed_html', $cache, $url, $attr, $rawattr ); 1233 1235 1234 1236 // If no cache, ping the oEmbed provider and cache the result
Note: See TracChangeset
for help on using the changeset viewer.