mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-01 16:51:18 +03:00
Pledge Form: Generate correct URL for the directory.
It's no longer a page, and instead uses the post type archive with a rewrite rule.
This commit is contained in:
parent
963dbd41e3
commit
93d2bafd34
|
@ -26,7 +26,7 @@ function render_form_new() {
|
|||
$errors = [];
|
||||
$pledge = null;
|
||||
$complete = false;
|
||||
$directory_url = get_permalink( get_page_by_path( 'pledges' ) );
|
||||
$directory_url = home_url( 'pledges' );
|
||||
$view = 'form-pledge-new.php';
|
||||
|
||||
if ( 'Submit Pledge' === $action ) {
|
||||
|
|
Loading…
Reference in a new issue