core/Container/Theme_Options_Container.php 1 location
|
@@ 103-111 (lines=9) @@
|
| 100 |
|
* |
| 101 |
|
* @return bool True if the container is allowed to be attached |
| 102 |
|
**/ |
| 103 |
|
public function is_valid_attach_for_request() { |
| 104 |
|
$environment = $this->get_environment_for_request(); |
| 105 |
|
$static_conditions_collection = $this->conditions_collection->evaluate( $this->get_dynamic_conditions(), true ); |
| 106 |
|
if ( ! $static_conditions_collection->is_fulfilled( $environment ) ) { |
| 107 |
|
return false; |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
return true; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
/** |
| 114 |
|
* Get environment array for object id |
core/Container/User_Meta_Container.php 1 location
|
@@ 126-138 (lines=13) @@
|
| 123 |
|
* |
| 124 |
|
* @return bool True if the container is allowed to be attached |
| 125 |
|
**/ |
| 126 |
|
public function is_valid_attach_for_request() { |
| 127 |
|
if ( ! $this->is_profile_page() ) { |
| 128 |
|
return false; |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
$environment = $this->get_environment_for_request(); |
| 132 |
|
$static_conditions_collection = $this->conditions_collection->evaluate( $this->get_dynamic_conditions(), true ); |
| 133 |
|
if ( ! $static_conditions_collection->is_fulfilled( $environment ) ) { |
| 134 |
|
return false; |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
return true; |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
/** |
| 141 |
|
* Get environment array for object id |