| @@ -140,23 +140,14 @@ | ||
| 140 | 140 | $data = []; |
| 141 | 141 | $types = get_post_types( [], 'objects' ); |
| 142 | 142 | |
| 143 | 143 | // Types with show_ui false that we want to show |
| 144 | - $known = apply_filters( 'fl_assistant_post_types_known', [ | |
| 144 | + $known = [ | |
| 145 | 145 | 'wp_template', |
| 146 | 146 | 'wp_template_part', |
| 147 | 147 | 'fl_code', |
| 148 | - ] ); | |
| 148 | + ]; | |
| 149 | 149 | |
| 150 | - // Of the types above, those whose items are portable enough to bulk add to a | |
| 151 | - // cloud library. Opt-in only: block templates are scoped to a theme via the | |
| 152 | - // wp_theme taxonomy and code snippets have their own library item type, so | |
| 153 | - // neither belongs in the upload picker. Design systems are portable by UUID, | |
| 154 | - // so they do. | |
| 155 | - $library = apply_filters( 'fl_assistant_post_types_library', [ | |
| 156 | - 'fl-design-system', | |
| 157 | - ] ); | |
| 158 | - | |
| 159 | 150 | // Types to never show |
| 160 | 151 | $ignore = [ |
| 161 | 152 | 'attachment', |
| 162 | 153 | 'wp_navigation', |
| @@ -183,10 +174,9 @@ | ||
| 183 | 174 | require_once ABSPATH . 'wp-admin/includes/theme.php'; |
| 184 | 175 | } |
| 185 | 176 | |
| 186 | 177 | $data[ $slug ] = [ |
| 187 | - 'canView' => $type->public || $type->publicly_queryable || in_array( $slug, $library ), | |
| 188 | - 'hasPublicUrl' => $type->public || $type->publicly_queryable, | |
| 178 | + 'canView' => $type->public || $type->publicly_queryable, | |
| 189 | 179 | 'canExport' => $type->can_export, |
| 190 | 180 | 'hasArchive' => $type->has_archive, |
| 191 | 181 | 'isHierarchical' => $type->hierarchical, |
| 192 | 182 | 'builtin' => $type->_builtin, |