wp/wp-includes/atomlib.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   189         return $ret;
   189         return $ret;
   190     }
   190     }
   191 
   191 
   192     function start_element($parser, $name, $attrs) {
   192     function start_element($parser, $name, $attrs) {
   193 
   193 
   194         $tag = array_pop(explode(":", $name));
   194         $name_parts = explode(":", $name);
       
   195         $tag        = array_pop($name_parts);
   195 
   196 
   196         switch($name) {
   197         switch($name) {
   197             case $this->NS . ':feed':
   198             case $this->NS . ':feed':
   198                 $this->current = $this->feed;
   199                 $this->current = $this->feed;
   199                 break;
   200                 break;
   268         $this->ns_decls = array();
   269         $this->ns_decls = array();
   269     }
   270     }
   270 
   271 
   271     function end_element($parser, $name) {
   272     function end_element($parser, $name) {
   272 
   273 
   273         $tag = array_pop(explode(":", $name));
   274         $name_parts = explode(":", $name);
       
   275         $tag        = array_pop($name_parts);
   274 
   276 
   275         $ccount = count($this->in_content);
   277         $ccount = count($this->in_content);
   276 
   278 
   277         # if we are *in* content, then let's proceed to serialize it
   279         # if we are *in* content, then let's proceed to serialize it
   278         if(!empty($this->in_content)) {
   280         if(!empty($this->in_content)) {