refactor: drop the featured-project picker in favour of the project list
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
12 files changed
+6
-362
No files matched your search
@@ -45,7 +45,7 @@ class EditorAssetsTest extends WP_UnitTestCase {
|
||||
* Clear only the CHRNX editor script state.
|
||||
*/
|
||||
private function reset_editor_scripts() {
|
||||
foreach ( array( 'chrnx-editor-taxonomies', 'chrnx-editor-podcast', 'chrnx-editor-project', 'chrnx-editor-track' ) as $handle ) {
|
||||
foreach ( array( 'chrnx-editor-taxonomies', 'chrnx-editor-podcast', 'chrnx-editor-track' ) as $handle ) {
|
||||
wp_dequeue_script( $handle );
|
||||
wp_deregister_script( $handle );
|
||||
}
|
||||
@@ -83,14 +83,13 @@ class EditorAssetsTest extends WP_UnitTestCase {
|
||||
)
|
||||
);
|
||||
|
||||
$this->assertSame( array( 'chrnx-editor-taxonomies', 'chrnx-editor-podcast', 'chrnx-editor-project', 'chrnx-editor-track' ), $handles );
|
||||
$this->assertSame( array( 'chrnx-editor-taxonomies', 'chrnx-editor-podcast', 'chrnx-editor-track' ), $handles );
|
||||
$expected_dependencies = array( 'wp-components', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins' );
|
||||
|
||||
foreach (
|
||||
array(
|
||||
'chrnx-editor-taxonomies' => 'assets/js/editor-taxonomies.js',
|
||||
'chrnx-editor-podcast' => 'assets/js/editor-podcast.js',
|
||||
'chrnx-editor-project' => 'assets/js/editor-project.js',
|
||||
) as $handle => $asset
|
||||
) {
|
||||
$this->assertArrayHasKey( $handle, $scripts->registered );
|
||||
@@ -123,7 +122,6 @@ class EditorAssetsTest extends WP_UnitTestCase {
|
||||
do_action( 'enqueue_block_editor_assets' );
|
||||
$this->assertFalse( wp_script_is( 'chrnx-editor-taxonomies', 'enqueued' ) );
|
||||
$this->assertFalse( wp_script_is( 'chrnx-editor-podcast', 'enqueued' ) );
|
||||
$this->assertFalse( wp_script_is( 'chrnx-editor-project', 'enqueued' ) );
|
||||
$this->assertFalse( wp_script_is( 'chrnx-editor-track', 'enqueued' ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ class PatternsTest extends WP_UnitTestCase {
|
||||
$contracts = array(
|
||||
'home-projects' => array(
|
||||
'heading' => 'Selected work',
|
||||
// The project names come from chrnx/selected-work now, not the pattern.
|
||||
// The project names come from the project list query now, not the pattern.
|
||||
'order' => array( 'Selected work' ),
|
||||
'art' => 'alter-ego-code-768.webp',
|
||||
'art_alt' => '',
|
||||
|
||||
Reference in new issue
Block a user