@@ 268-277 (lines=10) @@ | ||
265 | } |
|
266 | ||
267 | // this is just here to support checksum histograms |
|
268 | function get_post_meta_by_id( $meta_id ) { |
|
269 | $matching_metas = array(); |
|
270 | $metas = $this->meta[ get_current_blog_id() ]['post']; |
|
271 | foreach ( $metas as $m ) { |
|
272 | if ( $m->meta_id === $meta_id ) { |
|
273 | $matching_metas[] = $m; |
|
274 | } |
|
275 | } |
|
276 | return reset( $matching_metas ); |
|
277 | } |
|
278 | ||
279 | // this is just here to support checksum histograms |
|
280 | function get_comment_meta_by_id( $meta_id ) { |
|
@@ 280-289 (lines=10) @@ | ||
277 | } |
|
278 | ||
279 | // this is just here to support checksum histograms |
|
280 | function get_comment_meta_by_id( $meta_id ) { |
|
281 | $matching_metas = array(); |
|
282 | $metas = $this->meta[ get_current_blog_id() ]['comment']; |
|
283 | foreach ( $metas as $m ) { |
|
284 | if ( $m->meta_id === $meta_id ) { |
|
285 | $matching_metas[] = $m; |
|
286 | } |
|
287 | } |
|
288 | return reset( $matching_metas ); |
|
289 | } |
|
290 | ||
291 | public function find_meta( $meta ) { |
|
292 | // must match object ID |