wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
_links_add_base is private and should not be used in themes or plugins directly.
_links_add_base › WordPress Function
Depuis2.7.0
Dépréciéen/a
› _links_add_base ( $m )
Accès: |
|
Paramètres: |
|
Retourne: |
|
Défini(e) dans: |
|
Codex: |
Callback to add a base URL to relative links in passed content.
Fonctions en relation: links_add_base_url, _links_add_target, links_add_target, add_links_page, get_linksbyname
Source
function _links_add_base( $m ) { global $_links_add_base; // 1 = attribute name 2 = quotation mark 3 = URL. return $m[1] . '=' . $m[2] . ( preg_match( '#^(\w{1,20}):#', $m[3], $protocol ) && in_array( $protocol[1], wp_allowed_protocols(), true ) ? $m[3] : WP_Http::make_absolute_url( $m[3], $_links_add_base ) ) . $m[2]; }