wp/wp-content/plugins/option-tree/includes/ot-functions.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
child 11 bf1778c34b9a
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
   259           if ( isset( $parts[1] ) ) {
   259           if ( isset( $parts[1] ) ) {
   260 
   260 
   261             $sub_parts = explode( '/', $parts[1] );
   261             $sub_parts = explode( '/', $parts[1] );
   262 
   262 
   263             if ( isset( $sub_parts[1] ) && isset( $sub_parts[2] ) ) {
   263             if ( isset( $sub_parts[1] ) && isset( $sub_parts[2] ) ) {
   264               if ( $sub_parts[1] == 'themes' && $sub_parts[2] != get_template() ) {
   264               if ( $sub_parts[1] == 'themes' && $sub_parts[2] != get_stylesheet() ) {
   265                 continue;
   265                 continue;
   266               }
   266               }
   267             }
   267             }
   268             
   268             
   269             $css = set_url_scheme( WP_CONTENT_URL ) . $parts[1];
   269             $css = set_url_scheme( WP_CONTENT_URL ) . $parts[1];
   358         if ( $subsets != 'latin' ) {
   358         if ( $subsets != 'latin' ) {
   359           $append = '&subset=' . $subsets;
   359           $append = '&subset=' . $subsets;
   360         }
   360         }
   361       }
   361       }
   362 
   362 
   363       wp_enqueue_style( 'ot-google-fonts', esc_url( '//fonts.googleapis.com/css?family=' . implode( '|', $families ) ) . $append, false, null );
   363       wp_enqueue_style( 'ot-google-fonts', esc_url( '//fonts.googleapis.com/css?family=' . implode( '%7C', $families ) ) . $append, false, null );
   364     }
   364     }
   365 
   365 
   366   }
   366   }
   367 
   367 
   368 }
   368 }