Automattic\Jetpack\Autoloader\jpcd4dc500be73992154ab94f06c9d1b27
Manifest_Handler::register_record() protected WC 1.0
Registers an entry from the manifest in the path map.
{} Это метод класса: Manifest_Handler{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->register_record( $key, $data, $path_map );
- $key(строка) (обязательный) (передается по ссылке — &)
- The identifier for the entry we're registering.
- $data(массив) (обязательный) (передается по ссылке — &)
- The data for the entry we're registering.
- $path_map(массив) (обязательный) (передается по ссылке — &)
- The path map to add the contents of the manifest to.
Код Manifest_Handler::register_record() Manifest Handler::register record WC 5.0.0
protected function register_record( $key, $data, &$path_map ) {
if ( isset( $path_map[ $key ]['version'] ) ) {
$selected_version = $path_map[ $key ]['version'];
} else {
$selected_version = null;
}
if ( $this->version_selector->is_version_update_required( $selected_version, $data['version'] ) ) {
$path_map[ $key ] = array(
'version' => $data['version'],
'path' => $data['path'],
);
}
}