Changeset 5365
- Timestamp:
- 04/19/2017 01:10:27 AM (9 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp
- Files:
-
- 2 edited
-
wordcamp-admin.php (modified) (1 diff)
-
wordcamp-new-site.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php
r4837 r5365 35 35 // Topic metabox actions 36 36 add_action( 'add_meta_boxes', array( $this, 'metabox' ) ); 37 add_action( 'save_post ',array( $this, 'metabox_save' ), 10, 2 );37 add_action( 'save_post_' . WCPT_POST_TYPE_ID, array( $this, 'metabox_save' ), 10, 2 ); 38 38 39 39 // Scripts and CSS -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php
r5364 r5365 417 417 418 418 // Create actual posts from stubs 419 remove_action( 'save_post', array( $GLOBALS['wordcamp_admin'], 'metabox_save' ) ); // prevent this callback from adding all the meta fields from the corresponding wordcamp post to new posts we create420 421 419 foreach ( $stubs as $page ) { 422 420 $page_id = wp_insert_post( array( … … 465 463 } 466 464 467 add_action( 'save_post', array( $GLOBALS['wordcamp_admin'], 'metabox_save' ) ); // restore wordcamp meta callback468 465 Logger\log( 'finished', compact( 'assigned_sponsor_data', 'stubs', 'blog_name' ) ); 469 466 }
Note: See TracChangeset
for help on using the changeset viewer.