7studio / acf-svg-icon

Add a new ACF field type: "SVG Icon" which allows you to select icon(s) from a SVG sprite.
37 stars 10 forks source link

Notice: acf_get_dir is deprecated #6

Open davidallenlewis opened 4 years ago

davidallenlewis commented 4 years ago

( ! ) Notice: acf_get_dir is deprecated since version 5.6.8! Use acf_get_url() instead. in /public/wp-includes/functions.php on line 4565

Call Stack

Time Memory Function Location

1 0.0001 412232 {main}( ) .../post.php:0 2 0.3782 9782032 include( '/public/wp-admin/edit-form-advanced.php' ) .../post.php:198 3 0.3844 9840376 require_once( '/public/wp-admin/admin-header.php' ) .../edit-form-advanced.php:419 4 0.3857 9850224 do_action( ) .../admin-header.php:104
5 0.3857 9850600 WP_Hook->do_action( ) .../plugin.php:478
6 0.3857 9850600 WP_Hook->apply_filters( ) .../class-wp-hook.php:312 7 0.3865 9860824 ACF_Assets->admin_enqueue_scripts( ) .../class-wp-hook.php:288 8 0.3879 9887856 do_action( ) .../assets.php:235 9 0.3879 9888232 WP_Hook->do_action( ) .../plugin.php:478 10 0.3879 9888232 WP_Hook->apply_filters( ) .../class-wp-hook.php:312 11 0.3887 9897544 swp_acf_field_svg_icon->input_admin_enqueue_scripts( ) .../class-wp-hook.php:286 12 0.3887 9897624 acf_get_dir( ) .../class-swp-acf-svg-icon-v5.php:387 13 0.3887 9897624 _deprecated_function( ) .../deprecated.php:145 14 0.3888 9897944 trigger_error ( ) .../functions.php:4565

marsaultgaetan commented 3 years ago

Hi, i've the same issue : Deprecated: acf_get_dir Is there a fix ? Thx

heydavee commented 3 years ago

Got the same problem. PHP 8 | ACF Pro Version 5.9.8

mahonbone commented 2 weeks ago

Still an issue in 2024. PHP 8.1, WordPress 6.6.2, ACF Pro 6.3.6