You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$('#ajax-response').empty().append('<div class="error"><p>'+wp.i18n.__('Sorry, you are not allowed to do that.')+'</p></div>');
58
+
$('#ajax-response').empty().append('<div class="notice notice-error"><p>'+wp.i18n.__('Sorry, you are not allowed to do that.')+'</p></div>');
59
59
tr.children().css('backgroundColor','');
60
60
61
61
}else{
62
-
$('#ajax-response').empty().append('<div class="error"><p>'+wp.i18n.__('An error occurred while processing your request. Please try again later.')+'</p></div>');
62
+
$('#ajax-response').empty().append('<div class="notice notice-error"><p>'+wp.i18n.__('An error occurred while processing your request. Please try again later.')+'</p></div>');
@@ -461,29 +474,29 @@ public function get_item_schema() {
461
474
'title' => 'theme',
462
475
'type' => 'object',
463
476
'properties' => array(
464
-
'stylesheet' => array(
477
+
'stylesheet'=> array(
465
478
'description' => __( 'The theme\'s stylesheet. This uniquely identifies the theme.' ),
466
479
'type' => 'string',
467
480
'readonly' => true,
468
481
),
469
-
'stylesheet_uri' => array(
482
+
'stylesheet_uri'=> array(
470
483
'description' => __( 'The uri for the theme\'s stylesheet directory.' ),
471
484
'type' => 'string',
472
485
'format' => 'uri',
473
486
'readonly' => true,
474
487
),
475
-
'template' => array(
488
+
'template'=> array(
476
489
'description' => __( 'The theme\'s template. If this is a child theme, this refers to the parent theme, otherwise this is the same as the theme\'s stylesheet.' ),
477
490
'type' => 'string',
478
491
'readonly' => true,
479
492
),
480
-
'template_uri' => array(
493
+
'template_uri'=> array(
481
494
'description' => __( 'The uri for the theme\'s template directory. If this is a child theme, this refers to the parent theme, otherwise this is the same as the theme\'s stylesheet directory.' ),
482
495
'type' => 'string',
483
496
'format' => 'uri',
484
497
'readonly' => true,
485
498
),
486
-
'author' => array(
499
+
'author'=> array(
487
500
'description' => __( 'The theme author.' ),
488
501
'type' => 'object',
489
502
'readonly' => true,
@@ -498,7 +511,7 @@ public function get_item_schema() {
498
511
),
499
512
),
500
513
),
501
-
'author_uri' => array(
514
+
'author_uri'=> array(
502
515
'description' => __( 'The website of the theme author.' ),
503
516
'type' => 'object',
504
517
'readonly' => true,
@@ -515,7 +528,7 @@ public function get_item_schema() {
515
528
),
516
529
),
517
530
),
518
-
'description' => array(
531
+
'description'=> array(
519
532
'description' => __( 'A description of the theme.' ),
520
533
'type' => 'object',
521
534
'readonly' => true,
@@ -530,12 +543,12 @@ public function get_item_schema() {
530
543
),
531
544
),
532
545
),
533
-
'is_block_theme' => array(
546
+
'is_block_theme'=> array(
534
547
'description' => __( 'Whether the theme is a block-based theme.' ),
535
548
'type' => 'boolean',
536
549
'readonly' => true,
537
550
),
538
-
'name' => array(
551
+
'name'=> array(
539
552
'description' => __( 'The name of the theme.' ),
540
553
'type' => 'object',
541
554
'readonly' => true,
@@ -550,23 +563,23 @@ public function get_item_schema() {
550
563
),
551
564
),
552
565
),
553
-
'requires_php' => array(
566
+
'requires_php'=> array(
554
567
'description' => __( 'The minimum PHP version required for the theme to work.' ),
555
568
'type' => 'string',
556
569
'readonly' => true,
557
570
),
558
-
'requires_wp' => array(
571
+
'requires_wp'=> array(
559
572
'description' => __( 'The minimum Retraceur version required for the theme to work.' ),
560
573
'type' => 'string',
561
574
'readonly' => true,
562
575
),
563
-
'screenshot' => array(
576
+
'screenshot'=> array(
564
577
'description' => __( 'The theme\'s screenshot URL.' ),
565
578
'type' => 'string',
566
579
'format' => 'uri',
567
580
'readonly' => true,
568
581
),
569
-
'tags' => array(
582
+
'tags'=> array(
570
583
'description' => __( 'Tags indicating styles and features of the theme.' ),
571
584
'type' => 'object',
572
585
'readonly' => true,
@@ -584,18 +597,18 @@ public function get_item_schema() {
584
597
),
585
598
),
586
599
),
587
-
'textdomain' => array(
600
+
'textdomain'=> array(
588
601
'description' => __( 'The theme\'s text domain.' ),
589
602
'type' => 'string',
590
603
'readonly' => true,
591
604
),
592
-
'theme_supports' => array(
605
+
'theme_supports'=> array(
593
606
'description' => __( 'Features supported by this theme.' ),
594
607
'type' => 'object',
595
608
'readonly' => true,
596
609
'properties' => array(),
597
610
),
598
-
'theme_uri' => array(
611
+
'theme_uri'=> array(
599
612
'description' => __( 'The URI of the theme\'s webpage.' ),
600
613
'type' => 'object',
601
614
'readonly' => true,
@@ -612,16 +625,60 @@ public function get_item_schema() {
612
625
),
613
626
),
614
627
),
615
-
'version' => array(
628
+
'version'=> array(
616
629
'description' => __( 'The theme\'s current version.' ),
617
630
'type' => 'string',
618
631
'readonly' => true,
619
632
),
620
-
'status' => array(
633
+
'status'=> array(
621
634
'description' => __( 'A named status for the theme.' ),
622
635
'type' => 'string',
623
636
'enum' => array( 'inactive', 'active' ),
624
637
),
638
+
'default_template_types' => array(
639
+
'description' => __( 'A list of default template types.' ),
640
+
'type' => 'array',
641
+
'readonly' => true,
642
+
'items' => array(
643
+
'type' => 'object',
644
+
'properties' => array(
645
+
'slug' => array(
646
+
'type' => 'string',
647
+
),
648
+
'title' => array(
649
+
'type' => 'string',
650
+
),
651
+
'description' => array(
652
+
'type' => 'string',
653
+
),
654
+
),
655
+
),
656
+
),
657
+
'default_template_part_areas' => array(
658
+
'description' => __( 'A list of allowed area values for template parts.' ),
0 commit comments