Changeset 1960775
- Timestamp:
- 10/22/2018 04:04:52 PM (7 years ago)
- Location:
- recomendo/trunk
- Files:
-
- 2 edited
-
inc/recomendo-background-item-copy.php (modified) (2 diffs)
-
recomendo-plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recomendo/trunk/inc/recomendo-background-item-copy.php
r1960659 r1960775 53 53 54 54 $title = wp_filter_nohtml_kses( get_the_title( $item ) ); 55 $description = wp_filter_nohtml_kses( get_post_field('post_content', $item) );55 //$description = wp_filter_nohtml_kses( get_post_field('post_content', $item) ); 56 56 57 57 // reduce the size of description for extra long ones 58 if ( mb_strlen( $description, 'utf8' ) > 32766 ) {59 $description = mb_substr($description, 0 , 32766, 'utf8' );60 }58 //if ( mb_strlen( $description, 'utf8' ) > 32766 ) { 59 // $description = mb_substr($description, 0 , 32766, 'utf8' ); 60 //} 61 61 62 62 $categories = array(); … … 78 78 $properties = compact( 79 79 'title', 80 'description',80 // 'description', 81 81 'categories', 82 82 'tags', -
recomendo/trunk/recomendo-plugin.php
r1960659 r1960775 1003 1003 1004 1004 $title = wp_filter_nohtml_kses( get_the_title( $postid ) ); 1005 $description = wp_filter_nohtml_kses( get_the_content( $postid ) );1005 //$description = wp_filter_nohtml_kses( get_the_content( $postid ) ); 1006 1006 1007 1007 // reduce the size of description for extra long ones 1008 if ( mb_strlen( $description, 'utf8' ) > 32766 ) {1009 $description = mb_substr( $description, 0 , 32766, 'utf8' );1010 }1008 //if ( mb_strlen( $description, 'utf8' ) > 32766 ) { 1009 // $description = mb_substr( $description, 0 , 32766, 'utf8' ); 1010 //} 1011 1011 1012 1012 $categories = array(); … … 1028 1028 $properties = compact( 1029 1029 'title', 1030 'description',1030 // 'description', 1031 1031 'categories', 1032 1032 'tags',
Note: See TracChangeset
for help on using the changeset viewer.