Changeset 943
- Timestamp:
- 10/28/2014 08:45:54 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
r938 r943 2 2 3 3 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 4 5 <?php echo get_deprecated(); ?> 4 6 5 7 <h1><a href="<?php the_permalink() ?>"><?php echo get_signature(); ?></a></h1> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r938 r943 720 720 721 721 /** 722 * Retrieve deprecated flag 723 * 724 * @param int $post_id 725 * 726 * @return string 727 */ 728 function get_deprecated( $post_id = null ) { 729 if ( empty( $post_id ) ) { 730 $post_id = get_the_ID(); 731 } 732 733 $types = explode( '-', get_post_type( $post_id ) ); 734 $type = array_pop( $types ); 735 $tags = get_post_meta( $post_id, '_wp-parser_tags', true ); 736 $all_deprecated = wp_filter_object_list( $tags, array( 'name' => 'deprecated' ) ); 737 738 if ( empty( $all_deprecated ) ) { 739 return ''; 740 } 741 742 $deprecated = array_shift( $all_deprecated ); 743 // Multi-@deprecated may have been defined, with the second actually having the deprecation text. 744 if ( empty( $deprecated['content'] ) ) { 745 $deprecated = array_shift( $all_deprecated ); 746 } 747 $description = empty( $deprecated['content'] ) ? '' : esc_html( $deprecated['content'] ); 748 749 return "<div class='deprecated'>" 750 . wp_kses_post( sprintf( __( 'Warning: This %s has been deprecated. %s', 'wporg' ), $type, $description ) ) 751 . '</div>'; 752 } 753 754 /** 722 755 * Retrieve URL to source file archive. 723 756 * -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss
r940 r943 941 941 padding: 20px; 942 942 } 943 .deprecated { 944 background-color: #be2423; 945 border: 1px solid #a4322f; 946 padding: 20px; 947 color: #ffffff; 948 } 943 949 } 944 950 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css
r940 r943 1146 1146 padding: 20px; 1147 1147 } 1148 .devhub-wrap .wp-parser-class .deprecated, .devhub-wrap .wp-parser-function .deprecated, .devhub-wrap .wp-parser-hook .deprecated, .devhub-wrap .wp-parser-method .deprecated { 1149 background-color: #be2423; 1150 border: 1px solid #a4322f; 1151 padding: 20px; 1152 color: #ffffff; 1153 } 1148 1154 .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 { 1149 1155 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
Note: See TracChangeset
for help on using the changeset viewer.