Skip to content

Commit

Permalink
See pewresearch/pewresearch-org@8ec9d1c from refs/tags/v1.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
prcdevgitbot committed Oct 5, 2024
1 parent 5fcf55b commit 8c21aa4
Show file tree
Hide file tree
Showing 168 changed files with 48,539 additions and 8,484 deletions.
28 changes: 28 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "pewresearch/prc-platform-core",
"description": "Required PHP dependencies for the Pew Research Center digital experience platform.",
"license": "GPL-2.0-or-later",
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0"
},
"require": {
"berlindb/core": "@dev",
"drewm/mailchimp-api": "^2.5",
"kreait/firebase-php": "^7.0",
"landrok/language-detector": "^1.3",
"matthiasmullie/minify": "^1.3",
"lygav/php-slackbot": "^0.0.4",
"chapter-three/apple-news-api": "^0.3.11"
},
"config": {
"vendor-dir": "client-mu-plugins/vendor",
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true,
"alleyinteractive/composer-wordpress-autoloader": true
},
"platform": {
"php": "8.1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ public function execute_on_main_query($query) {
return $query;
}
if ( $query->is_archive() && $query->is_category() && $query->is_main_query() ) {
do_action('qm/debug', "Querying for block area story items.");
// Look for Topic-Lede block-area story items and exclude them from the main query.
$this->query_block_module_for_story_items('topic-lede', $query->get_queried_object()->slug);
do_action( 'qm/debug', print_r($this->collected_story_item_ids, true) );
$not_in = $query->get('post__not_in');
$query->set('post__not_in', array_merge($not_in, $this->collected_story_item_ids));
return $query;
Expand Down Expand Up @@ -135,8 +137,7 @@ public function query_block_module_for_story_items($block_area_slug = '', $categ
if ( false !== $cached && !is_preview() && is_array($cached) ) {
$this->collected_story_item_ids = $cached;
} else {
$query_args = $this->get_query_args($category_slug, $block_area_slug);

$query_args = $this->get_query_args('category', $category_slug, $block_area_slug);
$block_modules = new WP_Query($query_args);
if ( $block_modules->have_posts() ) {
$block_module_id = $block_modules->posts[0];
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('prc-components', 'prc-hooks', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9468572ddb123ab21e78');
<?php return array('dependencies' => array('prc-components', 'prc-hooks', 'react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'e82709f4ae97c89169c0');

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.wp-block-prc-platform-block-area[data-is-paged=true]{display:none}
Loading

0 comments on commit 8c21aa4

Please sign in to comment.