PluginProbe
Assistant – Every Day Productivity Apps / 1.5.4.2
Assistant – Every Day Productivity Apps v1.5.4.2
1.5.5 trunk 0.1.0 0.2.0 0.2.1 0.2.2 0.3.0 0.3.1 0.4 0.4.1 0.4.2 0.5.0 0.5.1 0.6.0 0.7.0 0.7.0.2 0.7.0.3 0.7.0.4 0.7.0.5 0.7.0.6 0.7.0.7 0.7.0.8 0.7.0.9 0.7.1 1.0 All 71 releases
← All changes | backend/src/Data/Repository/PostsRepository.php +3 -13 trunk1.5.4.2 View file →
@@ -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,