@@ 1007-1009 (lines=3) @@ | ||
1004 | unset( $posts[ $post_symbol ] ); |
|
1005 | continue; |
|
1006 | } |
|
1007 | if ( empty( $posts[ $post_symbol ]['post_name'] ) ) { |
|
1008 | $posts[ $post_symbol ]['post_name'] = sanitize_title( $posts[ $post_symbol ]['post_title'] ); |
|
1009 | } |
|
1010 | if ( empty( $posts[ $post_symbol ]['post_type'] ) ) { |
|
1011 | $posts[ $post_symbol ]['post_type'] = 'post'; |
|
1012 | } |
|
@@ 1136-1138 (lines=3) @@ | ||
1133 | $post_type = $posts[ $post_symbol ]['post_type']; |
|
1134 | if ( ! empty( $posts[ $post_symbol ]['post_name'] ) ) { |
|
1135 | $post_name = $posts[ $post_symbol ]['post_name']; |
|
1136 | } elseif ( ! empty( $posts[ $post_symbol ]['post_title'] ) ) { |
|
1137 | $post_name = sanitize_title( $posts[ $post_symbol ]['post_title'] ); |
|
1138 | } else { |
|
1139 | continue; |
|
1140 | } |
|
1141 |