mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 10:05:43 +03:00
Update company to pledge, some code cleanup
This commit is contained in:
parent
697a4b2329
commit
9bf2f9dd1a
6 changed files with 157 additions and 212 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue