PluginProbe ʕ •ᴥ•ʔ
Menu Icons by Themeisle – Add Icons to Navigation Menus / 0.11.2
Menu Icons by Themeisle – Add Icons to Navigation Menus v0.11.2
trunk 0.1.0 0.1.1 0.1.2 0.1.3 0.1.4 0.1.5 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.11.2 0.11.3 0.11.4 0.11.5 0.12.0 0.12.1 0.12.10 0.12.11 0.12.12 0.12.2 0.12.3 0.12.4 0.12.5 0.12.6 0.12.7 0.12.8 0.12.9 0.13.0 0.13.1 0.13.10 0.13.11 0.13.12 0.13.13 0.13.14 0.13.15 0.13.16 0.13.17 0.13.18 0.13.19 0.13.2 0.13.20 0.13.21 0.13.22 0.13.23 0.13.3 0.13.4 0.13.5 0.13.6 0.13.7 0.13.8 0.13.9 0.2.0 0.2.1 0.2.2 0.2.3 0.3.0 0.3.1 0.3.2 0.4.0 0.5.0 0.5.1 0.6.0 0.7.0 0.8.0 0.8.1 0.9.0 0.9.2
menu-icons / includes / library / compat.php
menu-icons / includes / library Last commit date
icon-picker 8 years ago menu-item-custom-fields 8 years ago compat.php 8 years ago form-fields.php 8 years ago functions.php 8 years ago
compat.php
24 lines
1 <?php
2
3 /**
4 * Misc. functions for backward-compatibility.
5 */
6
7 if ( ! function_exists( 'wp_get_attachment_image_url' ) ) {
8 /**
9 * Get the URL of an image attachment.
10 *
11 * @since 4.4.0
12 *
13 * @param int $attachment_id Image attachment ID.
14 * @param string|array $size Optional. Image size to retrieve. Accepts any valid image size, or an array
15 * of width and height values in pixels (in that order). Default 'thumbnail'.
16 * @param bool $icon Optional. Whether the image should be treated as an icon. Default false.
17 * @return string|false Attachment URL or false if no image is available.
18 */
19 function wp_get_attachment_image_url( $attachment_id, $size = 'thumbnail', $icon = false ) {
20 $image = wp_get_attachment_image_src( $attachment_id, $size, $icon );
21 return isset( $image['0'] ) ? $image['0'] : false;
22 }
23 }
24