Parsed: 130772

  protected static function get_default_slugs( $data, $node_path ) {
    $slugs = array();

    foreach ( static::PRESETS_METADATA as $metadata ) {
      $path = $node_path;
      foreach ( $metadata['path'] as $leaf ) {
        $path[] = $leaf;
      }
      $path[] = 'default';

      $preset = _wp_array_get( $data, $path, null );
      if ( ! isset( $preset ) ) {
        continue;
      }

      $slugs_for_preset = array();
      foreach ( $preset as $item ) {
        if ( isset( $item['slug'] ) ) {
          $slugs_for_preset[] = $item['slug'];
        }
      }

      _wp_array_set( $slugs, $metadata['path'], $slugs_for_preset );
    }

    return $slugs;
  }