AI CONTENT RINSE / 0.4.0

$rest_root, 'nonce' => wp_create_nonce( 'wp_rest' ), 'rules' => aicr_preferences() ) ); } /** Add reviewed cleanup to the post/page block editor for administrators. */ function aicr_editor_assets() { $screen = get_current_screen(); if ( ! $screen || ! $screen->is_block_editor() || ! in_array( $screen->post_type, array( 'post', 'page' ), true ) || ! aicr_permission() ) { return; } aicr_common_assets(); wp_enqueue_style( 'aicr-editor', plugins_url( 'assets/admin.css', __FILE__ ), array(), '0.4.0' ); wp_enqueue_script( 'aicr-editor', plugins_url( 'assets/editor.js', __FILE__ ), array( 'aicr-common', 'wp-plugins', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-components', 'wp-data', 'wp-blocks' ), '0.4.0', true ); wp_set_script_translations( 'aicr-editor', 'ai-content-rinse' ); }