🔒 EXCLUSIVE: Changeset/ - HD Photos!

Changeset 3401511


Ignore:
Timestamp:
11/24/2025 03:04:49 AM (5 weeks ago)
Author:
Mr2P
Message:

Tagging verson 1.1.0

Location:
breadcrumb-block
Files:
1 deleted
19 edited
1 copied

Legend:

Unmodified
Added
Removed
  • breadcrumb-block/tags/1.1.0/breadcrumb-block.php

    r3223285 r3401511  
    33 * Plugin Name:       Breadcrumb Block
    44 * Description:       A simple breadcrumb trail block that supports JSON-LD structured data and is compatible with Woocommerce
    5  * Requires at least: 5.8
     5 * Requires at least: 5.9
    66 * Requires PHP:      7.0
    7  * Version:           1.0.16
     7 * Version:           1.1.0
    88 * Author:            Phi Phan
    99 * Author URI:        https://boldblocks.net
     
    4444 */
    4545function breadcrumb_block_render_block( $attributes, $content, $block ) {
     46    // Get labels.
     47    $labels = $attributes['labels'] ?? [];
     48    if ( ! empty( $attributes['homeText'] ) && empty( $labels['home'] ) ) {
     49        $labels['home'] = $attributes['homeText'];
     50    }
     51
    4652    $content = Breadcrumbs::get_instance()->get_breadcrumb_trail(
    4753        [
    4854            'separator' => $attributes['separator'] ?? '',
    49             'labels'    => [
    50                 'home' => $attributes['homeText'] ?? '',
    51             ],
     55            'labels'    => $labels,
    5256        ]
    5357    );
  • breadcrumb-block/tags/1.1.0/build/block.json

    r3176552 r3401511