| @@ -43,11 +43,9 @@ | ||
| 43 | 43 | $post_type = 'docs'; |
| 44 | 44 | |
| 45 | 45 | $post_type_object = get_post_type_object( $post_type ); |
| 46 | 46 | |
| 47 | - if ( $post_type_object ) { | |
| 48 | - $post_type_archives[ 'post_type_archive/' . $post_type ] = $post_type_object->label . ' ' . __( 'Archive', 'betterdocs' ); | |
| 49 | - } | |
| 47 | + $post_type_archives[ 'post_type_archive/' . $post_type ] = $post_type_object->label . ' ' . __( 'Archive', 'betterdocs' ); | |
| 50 | 48 | |
| 51 | 49 | $post_type_taxonomies = get_object_taxonomies( $post_type, 'objects' ); |
| 52 | 50 | |
| 53 | 51 | $post_type_taxonomies = wp_filter_object_list( |
| @@ -108,8 +106,8 @@ | ||
| 108 | 106 | protected function get_remote_library_config() { |
| 109 | 107 | $config = parent::get_remote_library_config(); |
| 110 | 108 | |
| 111 | 109 | $config['category'] = 'Docs Archive'; |
| 112 | - $config['urls']['thumbnail'] = plugins_url( '/assets/static/admin/images/customizer/customizer-preview.png', __FILE__ ); | |
| 110 | + $config['urls']['thumbnail'] = plugins_url( '/assets/admin/images/customizer/customizer-preview.png', __FILE__ ); | |
| 113 | 111 | return $config; |
| 114 | 112 | } |
| 115 | 113 | } |