Merged in feature/314-dev-dev01 (pull request #24)
auto-patch 314-dev-dev01-2024-01-25T04_09_02 * auto-patch 314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
@@ -223,7 +223,7 @@ class Meta_Surface {
|
||||
$indexables = \array_filter( $indexables );
|
||||
|
||||
return \array_map(
|
||||
function( $indexable ) {
|
||||
function ( $indexable ) {
|
||||
return $this->build_meta( $this->context_memoizer->get( $indexable, 'Post_Type' ) );
|
||||
},
|
||||
$indexables
|
||||
@@ -293,7 +293,7 @@ class Meta_Surface {
|
||||
* @return Meta|false The meta values. False if none could be found.
|
||||
*/
|
||||
public function for_indexables( $indexables, $page_type = null ) {
|
||||
$closure = function( $indexable ) use ( $page_type ) {
|
||||
$closure = function ( $indexable ) use ( $page_type ) {
|
||||
$this_page_type = $page_type;
|
||||
if ( \is_null( $this_page_type ) ) {
|
||||
$this_page_type = $this->indexable_helper->get_page_type_for_indexable( $indexable );
|
||||
|
||||
Reference in New Issue
Block a user