@@ 370-380 (lines=11) @@ | ||
367 | /** |
|
368 | * Revert the result of attach() |
|
369 | **/ |
|
370 | public function detach() { |
|
371 | parent::detach(); |
|
372 | ||
373 | remove_action( 'admin_init', array( $this, '_attach' ) ); |
|
374 | remove_action( 'save_post', array( $this, '_save' ) ); |
|
375 | ||
376 | // unregister field names |
|
377 | foreach ( $this->fields as $field ) { |
|
378 | $this->drop_unique_field_name( $field->get_name() ); |
|
379 | } |
|
380 | } |
|
381 | ||
382 | /** |
|
383 | * Output the container markup |
@@ 69-79 (lines=11) @@ | ||
66 | /** |
|
67 | * Revert the result of attach() |
|
68 | **/ |
|
69 | public function detach() { |
|
70 | parent::detach(); |
|
71 | ||
72 | remove_action( 'admin_init', array( $this, '_attach' ) ); |
|
73 | remove_action( 'edit_comment', array( $this, '_save' ) ); |
|
74 | ||
75 | // unregister field names |
|
76 | foreach ( $this->fields as $field ) { |
|
77 | $this->drop_unique_field_name( $field->get_name() ); |
|
78 | } |
|
79 | } |
|
80 | ||
81 | /** |
|
82 | * Output the container markup |