Update company to pledge, some code cleanup

This commit is contained in:
Corey McKrill 2019-09-30 17:04:49 -07:00
parent 697a4b2329
commit 9bf2f9dd1a
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38
6 changed files with 157 additions and 212 deletions

View file

@ -7,7 +7,7 @@
namespace WordPressDotOrg\FiveForTheFuture\Blocks;
use WordPressDotOrg\FiveForTheFuture;
use WordPressDotOrg\FiveForTheFuture\Company;
use WordPressDotOrg\FiveForTheFuture\Pledge;
defined( 'WPINC' ) || die();
@ -36,7 +36,7 @@ function enqueue_scripts() {
$params = array(
// explain 100 is just sanity limit to keep page size performant. might need to lazy-load more in the future
// maybe order by donated_employees, or rand, to ensure the top companies are always displayed first, or to make sure treta everyone equal
'post_type' => Company\CPT_SLUG,
'post_type' => Pledge\CPT_ID,
'post_status' => 'publish',
'posts_per_page' => 100,
'orderby' => 'title',