Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (15 years ago)
Author:
markjaquith
Message:

_a(), _ea(), _xa(), attr() are now esc_attr(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class.wp-styles.php

    r11109 r11204  
    4949
    5050        if ( isset($this->registered[$handle]->args) )
    51             $media = attr( $this->registered[$handle]->args );
     51            $media = esc_attr( $this->registered[$handle]->args );
    5252        else
    5353            $media = 'all';
     
    5555        $href = $this->_css_href( $this->registered[$handle]->src, $ver, $handle );
    5656        $rel = isset($this->registered[$handle]->extra['alt']) && $this->registered[$handle]->extra['alt'] ? 'alternate stylesheet' : 'stylesheet';
    57         $title = isset($this->registered[$handle]->extra['title']) ? "title='" . attr( $this->registered[$handle]->extra['title'] ) . "'" : '';
     57        $title = isset($this->registered[$handle]->extra['title']) ? "title='" . esc_attr( $this->registered[$handle]->extra['title'] ) . "'" : '';
    5858
    5959        $end_cond = $tag = '';
Note: See TracChangeset for help on using the changeset viewer.