Changeset 38903
- Timestamp:
- 04/07/08 06:21:05 (3 months ago)
- Files:
-
- acronyms/trunk/acronyms.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
acronyms/trunk/acronyms.php
r38900 r38903 174 174 add_option( 'acronym_content', 1 ); 175 175 add_option( 'acronym_comments', 1 ); 176 add_option( 'default_num_of_acronyms', 15 );177 178 176 } 179 177 … … 251 249 $s = '&s=' . urlencode( $_GET['search'] ); 252 250 $p = isset( $_GET['p'] ) ? '&p=' . $_GET['p'] : ''; 253 $n = isset( $_GET['n'] ) && get_option( 'default_num_of_acronyms' )!= $_GET['n'] ? '&n=' . $_GET['n'] : '';251 $n = isset( $_GET['n'] ) && 15 != $_GET['n'] ? '&n=' . $_GET['n'] : ''; 254 252 $o = isset( $_GET['o'] ) ? '&o=' . $_GET['o'] : ''; 255 253 wp_redirect( "$parent_file$s$p$n$o" ); … … 289 287 else if ( 'All' == $_GET['n'] ) $n = 0; 290 288 } 291 else $n = get_option( 'default_num_of_acronyms' );289 else $n = 15; 292 290 if ( 0 == $n ) $t = 1; 293 291 else $t = ceil( Acronyms::count_acronyms( $s ) / $n ); // Total number of pages, rounded up to nearest integer
