| 576 | |
| 577 | if ( $theme->parent() ) { |
| 578 | if ( $theme->parent()->get ( 'ThemeURI' ) ) { |
| 579 | /* translators: %2$s: theme name */ |
| 580 | $child_theme_meta = sprintf ( 'Child theme of <a href="%1$s" aria-label="%2$s">%2$s</a>', esc_url ( $theme->parent ()->get ( 'ThemeURI' ) ), esc_attr ( $theme->parent ()->get ( 'Name' ) ) ); |
| 581 | } else { |
| 582 | /* translators: %s: theme name */ |
| 583 | $child_theme_meta = sprintf ( 'Child theme of %s.', esc_attr ( $theme->parent ()->get ( 'Name' ) ) ); |
| 584 | } |
| 585 | /* translators: %s: theme name */ |
| 586 | $theme_meta[] = sprintf ( __ ( '%s' ), $child_theme_meta ); |
| 587 | } |
| 588 | |