Changeset 38900
- Timestamp:
- 04/07/08 06:03:01 (3 months ago)
- Location:
- acronyms/trunk
- Files:
-
- 2 modified
-
acronyms.php (modified) (10 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
acronyms/trunk/acronyms.php
r38888 r38900 4 4 Plugin URI: http://ketsugi.com/software/wordpress/acronyms-plugin/ 5 5 Description: A plugin to wrap acronyms in posts and comments with appropriate <acronym> acronyms. Allows users to manage lists of acronyms through admin interface. Based on Joel Bennett's Acronym Replacer plugin (http://www.huddledmasses.org/) and Joel Pan's NP_Acronym plugin for Nucleus CMS. 6 Version: 1.5 6 Version: 1.5.1 7 7 Author: Joel Pan 8 8 Author URI: http://ketsugi.com/ … … 198 198 function management_handler () { 199 199 $title = __( 'Acronyms' ); 200 $parent_file = 'edit.php?page= acronyms.php';200 $parent_file = 'edit.php?page=' . Acronyms::get_parent_url(); 201 201 $acronyms = get_option( 'acronym_acronyms' ); 202 202 … … 216 216 if ( Acronyms::update ( $acronym, $fulltext ) ) $message = 1; 217 217 else $message = 4; 218 wp_redirect( 'edit.php?page=acronyms.php&message=' . $message);218 wp_redirect( "$parent_file&message=$message" ); 219 219 exit; 220 220 break; … … 226 226 if ( Acronyms::update ( $acronym, $fulltext ) ) $message = 3; 227 227 else $message = 5; 228 wp_redirect( 'edit.php?page=acronyms.php&message=' . $message);228 wp_redirect( "$parent_file&message=$message" ); 229 229 exit; 230 230 break; … … 244 244 $message = 6; 245 245 else $message = 2; 246 wp_redirect( 'edit.php?page=acronyms.php&message=' . $message);246 wp_redirect( "$parent_file&message=$message" ); 247 247 exit; 248 248 break; … … 253 253 $n = isset( $_GET['n'] ) && get_option( 'default_num_of_acronyms' ) != $_GET['n'] ? '&n=' . $_GET['n'] : ''; 254 254 $o = isset( $_GET['o'] ) ? '&o=' . $_GET['o'] : ''; 255 wp_redirect( " edit.php?page=acronyms.php$s$p$n$o" );255 wp_redirect( "$parent_file$s$p$n$o" ); 256 256 } 257 257 } … … 295 295 <div class="wrap"> 296 296 <form id="posts-filter" action="" method="get"> 297 <input type="hidden" name="page" value=" acronyms.php"/>297 <input type="hidden" name="page" value="<?php echo Acronyms::get_parent_url() ?>"/> 298 298 <h2><?php 299 299 _e('Manage Acronyms'); … … 376 376 <th scope="row" class="check-column"> <input type="checkbox" name="delete_acronyms[]" value="<?php echo $acronym ?>" /></th> 377 377 <td><strong> 378 <a class="row-title" href="edit.php?page= acronyms.php&action=edit&acronym=<?php echo urlencode( $acronym ) ?>&fulltext=<?php echo urlencode( $fulltext ) ?>" title="Edit "<?php echo $acronym ?>""><?php echo $acronym ?></a></strong></td>378 <a class="row-title" href="edit.php?page=<?php echo Acronyms::get_parent_url() ?>&action=edit&acronym=<?php echo urlencode( $acronym ) ?>&fulltext=<?php echo urlencode( $fulltext ) ?>" title="Edit "<?php echo $acronym ?>""><?php echo $acronym ?></a></strong></td> 379 379 <td><?php echo $fulltext ?></td> 380 380 </tr> … … 458 458 <div id="ajax-response"></div> 459 459 <?php echo $form ?> 460 <input type="hidden" name="page" value=" acronyms.php"/>460 <input type="hidden" name="page" value="<?php echo Acronyms::get_parent_url() ?>"/> 461 461 <input type="hidden" name="action" value="<?php echo $action ?>" /> 462 462 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field($nonce_action); ?> … … 524 524 } 525 525 526 /* string get_parent_url () 527 * 528 */ 529 function get_parent_url() 530 { 531 return $_GET['page']; 532 } 533 526 534 } /* END CLASS acronyms */ 527 535 -
acronyms/trunk/readme.txt
r38898 r38900 5 5 Requires at least: 2.1 6 6 Tested up to: 2.5 7 Stable tag: 1.5 7 Stable tag: 1.5.1 8 8 9 9 A plugin to wrap acronyms in posts and comments with appropriate `<acronym>` acronyms. Allows users to manage lists of acronyms through admin interface. Based on Joel Bennett's Acronym Replacer plugin (http://www.huddledmasses.org/) and Joel Pan's NP_Acronym plugin for Nucleus CMS.
