Skip to content
Permalink
Browse files

Disabled skipping of undocumented hooks.

  • Loading branch information...
Rarst committed Dec 17, 2014
1 parent cb5fda9 commit 45ff10ed656ad783b9e68f368d3b208040715170
Showing with 9 additions and 2 deletions.
  1. +9 −2 lib/class-importer.php
@@ -368,13 +368,20 @@ public function import_function( array $data, $parent_post_id = 0, $import_inter
* @return bool|int Post ID of this hook, false if any failure.
*/
public function import_hook( array $data, $parent_post_id = 0, $import_internal = false ) {
/* TODO core-centric assumption, shouldn't be handled on import step
if ( 0 === strpos( $data['doc']['description'], 'This action is documented in' ) ) {
return false;
} elseif ( 0 === strpos( $data['doc']['description'], 'This filter is documented in' ) ) {
}
if ( 0 === strpos( $data['doc']['description'], 'This filter is documented in' ) ) {
return false;
} elseif ( '' === $data['doc']['description'] && '' === $data['doc']['long_description'] ) {
}
if ( '' === $data['doc']['description'] && '' === $data['doc']['long_description'] ) {
return false;
}
*/
$hook_id = $this->import_item( $data, $parent_post_id, $import_internal, array( 'post_type' => $this->post_type_hook ) );

0 comments on commit 45ff10e

Please sign in to comment.
You can’t perform that action at this time.