Changeset 844234
- Timestamp:
- 01/24/2014 12:35:53 AM (12 years ago)
- Location:
- auto-sticky-post
- Files:
-
- 4 edited
-
tags/1.1.1/auto-sticky-post.php (modified) (1 diff)
-
tags/1.1.1/inc/functions.php (modified) (1 diff)
-
trunk/auto-sticky-post.php (modified) (1 diff)
-
trunk/inc/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
auto-sticky-post/tags/1.1.1/auto-sticky-post.php
r844231 r844234 69 69 function jlasp_activation() 70 70 { 71 if( !get_option( 'jlasp_number_post' ) )71 if( (int)!get_option( 'jlasp_number_post' ) ) 72 72 { 73 73 add_option( 'jlasp_number_post', 3 ); -
auto-sticky-post/tags/1.1.1/inc/functions.php
r844231 r844234 10 10 */ 11 11 function jlasp_set_featured_post( $number ) { 12 $recent_posts = wp_list_pluck( wp_get_recent_posts($number), 'ID' ); 13 update_option( 'sticky_posts', $recent_posts); 12 $recent_posts = wp_get_recent_posts($number); 13 $new_sticky = array(); 14 foreach( $recent_posts as $recent ){ 15 array_push( $new_sticky, $recent["ID"]); 16 } 17 update_option( 'sticky_posts', $new_sticky); 14 18 } 15 19 -
auto-sticky-post/trunk/auto-sticky-post.php
r844231 r844234 69 69 function jlasp_activation() 70 70 { 71 if( !get_option( 'jlasp_number_post' ) )71 if( (int)!get_option( 'jlasp_number_post' ) ) 72 72 { 73 73 add_option( 'jlasp_number_post', 3 ); -
auto-sticky-post/trunk/inc/functions.php
r844231 r844234 10 10 */ 11 11 function jlasp_set_featured_post( $number ) { 12 $recent_posts = wp_list_pluck( wp_get_recent_posts($number), 'ID' ); 13 update_option( 'sticky_posts', $recent_posts); 12 $recent_posts = wp_get_recent_posts($number); 13 $new_sticky = array(); 14 foreach( $recent_posts as $recent ){ 15 array_push( $new_sticky, $recent["ID"]); 16 } 17 update_option( 'sticky_posts', $new_sticky); 14 18 } 15 19
Note: See TracChangeset
for help on using the changeset viewer.