ata ); } /** * Get the admin script data. * * @return array */ protected static function get_public_script_data() { $data = array( 'site' => array( 'icon' => self::get_site_icon(), 'title' => self::get_site_title(), ), ); /** * Filter the public script data. * * See the docs for `jetpack_admin_js_script_data` filter for more information. * * @since 2.3.0 * * @param array $data The script data. */ return apply_filters( 'jetpack_public_js_script_data', $data ); } /** * Get the site title. * * @return string */ protected static function get_site_title() { $title = get_bloginfo( 'name' ); return $title ? $title : esc_url_raw( ( get_site_url() ) ); } /** * Get the site icon. * * @return string */ protected static function get_site_icon() { if ( ! has_site_icon() ) { return ''; } /** * Filters the site icon using Photon. * * @see https://developer.wordpress.com/docs/photon/ * * @param string $url The URL of the site icon. * @param array|string $args An array of arguments, e.g. array( 'w' => '300', 'resize' => array( 123, 456 ) ), or in string form (w=123&h=456). */ return apply_filters( 'jetpack_photon_url', get_site_icon_url(), array( 'w' => 64 ) ); } /** * Get the current user data. * * @return array */ protected static function get_current_user_data() { $current_user = wp_get_current_user(); return array( 'display_name' => $current_user->display_name, 'id' => $current_user->ID, ); } } Sistemas y Seguridad – Página 11 – TENEND

Mostrando 121–132 de 771 resultados