Make WordPress Core

Changeset 27367


Ignore:
Timestamp:
03/03/2014 02:13:07 AM (11 years ago)
Author:
nacin
Message:

Accept rel attributes in the toolbar's add_node() method.

props stephcook22.
fixes #27234.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-admin-bar.php

    r26134 r27367  
    8888     * - href       - string    - The link for the item. Optional.
    8989     * - group      - boolean   - If the node is a group. Optional. Default false.
    90      * - meta       - array     - Meta data including the following keys: html, class, onclick, target, title, tabindex.
     90     * - meta       - array     - Meta data including the following keys: html, class, onclick, target, title, tabindex, rel.
    9191     */
    9292    public function add_node( $args ) {
     
    439439                    ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php
    440440                endif;
     441                if ( ! empty( $node->meta['rel'] ) ) :
     442                    ?> rel="<?php echo esc_attr( $node->meta['rel'] ); ?>"<?php
     443                endif;
    441444                ?>><?php
    442445            else:
Note: See TracChangeset for help on using the changeset viewer.