Add some comments

This commit is contained in:
Corey McKrill 2019-10-04 12:22:26 -07:00
parent 1b39994280
commit 34c91bbc9b
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38
4 changed files with 9 additions and 3 deletions

View file

@ -196,6 +196,8 @@ function has_required_pledge_meta( array $submission ) {
/** /**
* Save the pledge data. * Save the pledge data.
* *
* This only fires when the pledge post itself is created or updated.
*
* @param int $pledge_id * @param int $pledge_id
* @param WP_Post $pledge * @param WP_Post $pledge
*/ */

View file

@ -5,6 +5,8 @@
* or two, we may want to create a subfolder and have a separate file for each block. * or two, we may want to create a subfolder and have a separate file for each block.
*/ */
// TODO are we actually using any of this?
namespace WordPressDotOrg\FiveForTheFuture\Blocks; namespace WordPressDotOrg\FiveForTheFuture\Blocks;
use WordPressDotOrg\FiveForTheFuture; use WordPressDotOrg\FiveForTheFuture;
use WordPressDotOrg\FiveForTheFuture\Pledge; use WordPressDotOrg\FiveForTheFuture\Pledge;

View file

@ -7,7 +7,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
/** @var bool $updated */ /** @var bool $updated */
?> ?>
<form id="5ftf-form-pledge-new" action="" method="post"> <form id="5ftf-form-pledge-manage" action="" method="post">
<?php <?php
require get_views_path() . 'inputs-pledge-org-info.php'; require get_views_path() . 'inputs-pledge-org-info.php';
require get_views_path() . 'inputs-pledge-org-logo.php'; require get_views_path() . 'inputs-pledge-org-logo.php';

View file

@ -1,6 +1,8 @@
<?php // todo i18n <?php // todo i18n
//// change all id/class prefixes to fftf (or something better) b/c not valid to start w/ number //// change all id/class prefixes to fftf (or something better) b/c not valid to start w/ number
/// ?>
// TODO are we using this, or is all the front end stuff happening in the 5ftF theme now?
?>
<article class="5ftf"> <article class="5ftf">
<section class="about"> <section class="about">