Undefined index: debuging error for theme option template snippet

Looking at your actual source, the relevant portion (with line numbers) is this: 745 if ( $_GET[‘page’] == basename(__FILE__) ) { 746 747 if ( ‘save’ == $_REQUEST[‘action’] ) { 748 749 foreach ($options as $value) { 750 update_option( $value[‘id’], $_REQUEST[ $value[‘id’] ] ); } 751 752 foreach ($options as $value) { 753 if( isset( … Read more

Where to find new class reference or function of deprecated one?

The deprecated functions are listed in the following files. /wp-includes/deprecated.php /wp-admin/includes/deprecated.php /wp-includes/pluggable-deprecated.php /wp-includes/ms-deprecated.php /wp-admin/includes/ms-deprecated.php As to whether the Codex is updated with the above I have no idea, but like always.. when in doubt look into the actual core code. Use an IDE or text editor that has a good find in files search, so … Read more

Replace deprecated get_category_children code with get_terms

Yes, get_category_children() is indeed deprecated and you should use get_term_children() instead. So with your original code: // You can simply replace this: if (get_category_children($this_category->cat_ID) != “”) // with this: $ids = get_term_children( $this_category->cat_ID, ‘category’ ); if ( ! empty( $ids ) ) And with your second code which uses get_terms(), you can check if the … Read more

Is this hook really deprecated? ( manage_{$taxonomy}_custom_column )

manage_{$taxonomy}_custom_column is a dynamic hook, so until you are using a proper value for $taxonomy like post_tag, it would work perfectly. Adam Brown page tells it as deprecated because it looks for exact match, while there is a change in the files so the current hook being used are manage_{$this->screen->taxonomy}_custom_column or manage_{$screen->taxonomy}_custom_column which accepts the … Read more

wp_get_http has been deprecated. Use WP_Http instead

WP_Http is a: Core class used for managing HTTP transports and making HTTP requests. so it should most likely be this link: https://developer.wordpress.org/reference/classes/wp_http/ instead of: https://developer.wordpress.org/reference/functions/WP_Http that redirects you to: https://developer.wordpress.org/reference/functions/wp_http_supports/ Then there are wrappers like wp_remote_get(), wp_remote_post(), wp_safe_remote_get(), wp_safe_remote_post(), wp_remote_retrieve_response_code(), download_url(), … etc, that makes it easier to use. Check out e.g. the HTTP … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)