Changeset 1269
- Timestamp:
- 02/17/2015 07:37:27 PM (10 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php
r1196 r1269 116 116 <?php if ( $excerpt = apply_filters( 'get_the_excerpt', $child->post_excerpt ) ) { 117 117 echo '— ' . sanitize_text_field( $excerpt ); 118 } ?> 119 <?php if ( is_deprecated( $child->ID ) ) { 120 echo '— <span class="deprecated-method">' . __( 'deprecated', 'wporg' ) . '</span>'; 118 121 } ?> 119 122 </li> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r1196 r1269 784 784 785 785 /** 786 * Indicates if a post is deprecated. 787 * 788 * @param int $post_id 789 * 790 * @return bool 791 */ 792 function is_deprecated( $post_id = null ) { 793 if ( empty( $post_id ) ) { 794 $post_id = get_the_ID(); 795 } 796 797 $tags = get_post_meta( $post_id, '_wp-parser_tags', true ); 798 $all_deprecated = wp_filter_object_list( $tags, array( 'name' => 'deprecated' ) ); 799 800 return !! $all_deprecated; 801 } 802 803 /** 786 804 * Retrieve deprecated flag 787 805 * -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss
r1244 r1269 995 995 color: #ffffff; 996 996 } 997 .deprecated-method { 998 color: #be2423; 999 font-style: italic; 1000 } 997 1001 } 998 1002 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css
r1244 r1269 1199 1199 color: #ffffff; 1200 1200 } 1201 .devhub-wrap .wp-parser-class .deprecated-method, .devhub-wrap .wp-parser-function .deprecated-method, .devhub-wrap .wp-parser-hook .deprecated-method, .devhub-wrap .wp-parser-method .deprecated-method { 1202 color: #be2423; 1203 font-style: italic; 1204 } 1201 1205 .devhub-wrap.archive .wp-parser-class h1 a, .devhub-wrap.archive .wp-parser-function h1 a, .devhub-wrap.archive .wp-parser-hook h1 a, .devhub-wrap.archive .wp-parser-method h1 a, .devhub-wrap.search .wp-parser-class h1 a, .devhub-wrap.search .wp-parser-function h1 a, .devhub-wrap.search .wp-parser-hook h1 a, .devhub-wrap.search .wp-parser-method h1 a { 1202 1206 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
Note: See TracChangeset
for help on using the changeset viewer.