Making WordPress.org

Changeset 449


Ignore:
Timestamp:
02/28/2014 10:50:29 PM (12 years ago)
Author:
nacin
Message:

Make WP.org home: Use post_name for site classes. see #378.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/functions.php

    r141 r449  
    1919add_filter('post_class','make_home_site_classes', 10, 3);
    2020function make_home_site_classes($classes, $class, $id) {
    21         $title = get_the_title($id);
    22         $title = sanitize_title($title);
    23         $classes[] = 'make-'.$title;
     21        $classes[] = sanitize_html_class( 'make-' . get_post( $id )->post_name );
    2422        return $classes;
    2523}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/style.css

    r127 r449  
    221221section.get-involved article.make-themes        h2:before { content: '\f105'; }
    222222section.get-involved article.make-plugins               h2:before { content: '\f106'; }
    223 section.get-involved article.make-documentation h2:before { content: '\f123'; }
     223section.get-involved article.make-docs                  h2:before { content: '\f123'; }
    224224section.get-involved article.make-community             h2:before { content: '\f125'; }
    225225section.get-involved article.make-meta                  h2:before { content: '\f325'; }
Note: See TracChangeset for help on using the changeset viewer.