Changeset 5496
- Timestamp:
- 09/11/2014 01:53:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/topics.php
r5466 r5496 531 531 : false; 532 532 $message = ( true === $is_sticky ) 533 ? 'unst icked'534 : 'st icked';533 ? 'unstuck' 534 : 'stuck'; 535 535 $message = ( true === $is_super ) 536 ? 'super_stick ed'536 ? 'super_sticky' 537 537 : $message; 538 538 $success = ( true === $is_sticky ) … … 595 595 596 596 // Only proceed if GET is a topic toggle action 597 if ( bbp_is_get_request() && !empty( $_GET['bbp_topic_toggle_notice'] ) && in_array( $_GET['bbp_topic_toggle_notice'], array( 'opened', 'closed', 'super_stick ed', 'sticked', 'unsticked', 'spammed', 'unspammed' ) ) && !empty( $_GET['topic_id'] ) ) {597 if ( bbp_is_get_request() && !empty( $_GET['bbp_topic_toggle_notice'] ) && in_array( $_GET['bbp_topic_toggle_notice'], array( 'opened', 'closed', 'super_sticky', 'stuck', 'unstuck', 'spammed', 'unspammed' ) ) && !empty( $_GET['topic_id'] ) ) { 598 598 $notice = $_GET['bbp_topic_toggle_notice']; // Which notice? 599 599 $topic_id = (int) $_GET['topic_id']; // What's the topic id? … … 626 626 break; 627 627 628 case 'super_stick ed' :628 case 'super_sticky' : 629 629 $message = ( $is_failure === true ) 630 630 ? sprintf( __( 'There was a problem sticking the topic "%1$s" to front.', 'bbpress' ), $topic_title ) 631 : sprintf( __( 'Topic "%1$s" successfully st icked to front.','bbpress' ), $topic_title );632 break; 633 634 case 'st icked' :631 : sprintf( __( 'Topic "%1$s" successfully stuck to front.', 'bbpress' ), $topic_title ); 632 break; 633 634 case 'stuck' : 635 635 $message = ( $is_failure === true ) 636 636 ? sprintf( __( 'There was a problem sticking the topic "%1$s".', 'bbpress' ), $topic_title ) 637 : sprintf( __( 'Topic "%1$s" successfully st icked.','bbpress' ), $topic_title );638 break; 639 640 case 'unst icked' :637 : sprintf( __( 'Topic "%1$s" successfully stuck.', 'bbpress' ), $topic_title ); 638 break; 639 640 case 'unstuck' : 641 641 $message = ( $is_failure === true ) 642 642 ? sprintf( __( 'There was a problem unsticking the topic "%1$s".', 'bbpress' ), $topic_title ) 643 : sprintf( __( 'Topic "%1$s" successfully unst icked.','bbpress' ), $topic_title );643 : sprintf( __( 'Topic "%1$s" successfully unstuck.', 'bbpress' ), $topic_title ); 644 644 break; 645 645
Note: See TracChangeset
for help on using the changeset viewer.