Skip to content

Commit

Permalink
Fix GitHub & SVN file syncing issue (#1326)
Browse files Browse the repository at this point in the history
* Revert "Fix always show "the link you followed has expired" error page (#1321)"

This reverts commit 4fcecb6.

* Revert "New reimbursement request and vendor payments status and notes functionality (#1051)"

This reverts commit e21ab60.

* add new wcb-needs-followup status for payments

* add new wcb-needs-followup status to network payments views

* take new wcb-pending-approval status into consideration when doing the overdue vendor payments list

---------

Co-authored-by: Timi Wahalahti <[email protected]>
  • Loading branch information
renintw and timiwahalahti authored May 23, 2024
1 parent dced384 commit 7bcb5f4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ function save_request( $post_id, $post ) {
}

verify_metabox_nonces();

// phpcs:ignore is added because verify_metabox_nonces(); already checks that.
// phpcs:ignore WordPress.Security.NonceVerification.Missing
validate_and_save_notes( $post, $_POST['wcbrr_new_note'] );
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
<?php

if ( ! defined( 'WPINC' ) ) {
die();
}

if ( empty( $existing_notes ) ) :
esc_html_e( 'There are no private notes yet.', 'wordcamporg' );
else :
foreach ( $existing_notes as $note ) : ?>
namespace WordCamp\Budgets\Reimbursement_Requests;
defined( 'WPINC' ) || die();

?>

<?php if ( empty( $existing_notes ) ) : ?>

<?php esc_html_e( 'There are no notes yet.', 'wordcamporg' ); ?>

<?php else : ?>

<?php foreach ( $existing_notes as $note ) : ?>
<div class="wcbrr-note">
<span class="wcbrr-note-meta">
<?php echo esc_html( gmdate( 'Y-m-d', $note['timestamp'] ) ); ?>
<?php echo esc_html( WordCamp_Budgets::get_requester_name( $note['author_id'] ) ); ?>:
<?php echo esc_html( \WordCamp_Budgets::get_requester_name( $note['author_id'] ) ); ?>:
</span>

<?php echo esc_html( $note['message'] ); ?>
</div>
<?php endforeach;
endif; ?>
<?php endforeach; ?>

<?php endif; ?>

<div>
<h3>
Expand Down

0 comments on commit 7bcb5f4

Please sign in to comment.