Changeset 1351 for trunk/bp-blogs/bp-blogs-classes.php
- Timestamp:
- 04/19/2009 12:21:53 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-blogs/bp-blogs-classes.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-classes.php
r1250 r1351 29 29 function save() { 30 30 global $wpdb, $bp; 31 32 $this->user_id = apply_filters( 'bp_blogs_blog_user_id_before_save', $this->user_id, $this->id ); 33 $this->blog_ud = apply_filters( 'bp_blogs_blog_id_before_save', $this->blog_id, $this->id ); 34 35 do_action( 'bp_blogs_blog_before_save', $this ); 31 36 32 37 // Don't try and save if there is no user ID or blog ID set. … … 48 53 if ( !$wpdb->query($sql) ) 49 54 return false; 55 56 do_action( 'bp_blogs_blog_after_save', $this ); 50 57 51 58 if ( $this->id ) … … 301 308 global $wpdb, $bp; 302 309 310 $this->post_id = apply_filters( 'bp_blogs_post_id_before_save', $this->post_id, $this->id ); 311 $this->blog_id = apply_filters( 'bp_blogs_post_blog_id_before_save', $this->blog_id, $this->id ); 312 $this->user_id = apply_filters( 'bp_blogs_post_user_id_before_save', $this->user_id, $this->id ); 313 $this->date_created = apply_filters( 'bp_blogs_post_date_created_before_save', $this->date_created, $this->id ); 314 315 do_action( 'bp_blogs_post_before_save', $this ); 316 303 317 if ( $this->id ) { 304 318 // Update … … 311 325 if ( !$wpdb->query($sql) ) 312 326 return false; 327 328 do_action( 'bp_blogs_post_after_save', $this ); 313 329 314 330 if ( $this->id ) … … 496 512 function save() { 497 513 global $wpdb, $bp; 514 515 $this->comment_id = apply_filters( 'bp_blogs_comment_id_before_save', $this->comment_id, $this->id ); 516 $this->comment_post_id = apply_filters( 'bp_blogs_comment_post_id_before_save', $this->comment_post_id, $this->id ); 517 $this->blog_id = apply_filters( 'bp_blogs_comment_blog_id_before_save', $this->blog_id, $this->id ); 518 $this->user_id = apply_filters( 'bp_blogs_comment_user_id_before_save', $this->user_id, $this->id ); 519 $this->date_created = apply_filters( 'bp_blogs_comment_date_created_before_save', $this->date_created, $this->id ); 520 521 do_action( 'bp_blogs_comment_before_save', $this ); 498 522 499 523 if ( $this->id ) { … … 507 531 if ( !$wpdb->query($sql) ) 508 532 return false; 533 534 do_action( 'bp_blogs_comment_after_save', $this ); 509 535 510 536 if ( $this->id )
Note: See TracChangeset
for help on using the changeset viewer.