File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ public static function getDeprecated($post_id = null) {
514
514
515
515
$ deprecated = wp_filter_object_list ($ tags , ['name ' => 'deprecated ' ]);
516
516
517
- if (empty ($ deprecated ) || ! isset ( $ deprecated [ ' content ' ]) ) {
517
+ if (empty ($ deprecated )) {
518
518
return [
519
519
'content ' => '' ,
520
520
'description ' => '' ,
@@ -523,6 +523,13 @@ public static function getDeprecated($post_id = null) {
523
523
524
524
$ deprecated = array_shift ($ deprecated );
525
525
526
+ if (!isset ($ deprecated ['content ' ])) {
527
+ return [
528
+ 'content ' => '' ,
529
+ 'description ' => '' ,
530
+ ];
531
+ }
532
+
526
533
return [
527
534
'content ' => htmlspecialchars ($ deprecated ['content ' ]),
528
535
'description ' => htmlspecialchars (isset ($ deprecated ['description ' ]) ? $ deprecated ['description ' ] : '' ),
You can’t perform that action at this time.
0 commit comments