Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [deprecation]

The tag has no usage guidance.

0
votes
1answer
250 views

WordPress core code contains things marked as deprecated by… Wordpress?

I have some problems matching this message in my WordPress network update page: You have the latest version of WordPress. Future security updates will be applied automatically. If you need to re-...
0
votes
1answer
2k views

Replacing a deprecated filter 'woocommerce_get_price' with 'woocommerce_product_get_price'

I recently updated WooCommerce on a site that I didn't make myself. After doing this, then I saw the following line in the error-log: woocommerce_get_price is deprecated since version 3.0.0! Use ...
-3
votes
3answers
376 views

Your PHP installation appears to be missing the MySQL … After deleting and restarting from cpanel

I deleted everything in my directory to "start over" When I install wordpress it says : Your PHP installation appears to be missing the MySQL extension which is required by WordPress. I tried changing ...
1
vote
1answer
102 views

Deprecated issue in WordPress [closed]

I am new in WordPress Development. I updated version of my WordPress site to 4.6.1. Then I found this error in debug.log Notice: The called constructor method for WP_Widget in C_Widget_Gallery is ...
0
votes
1answer
508 views

Pass parameter to hooked function using custom page template

Based upon this I have tried to write the following code as: Custom Page template: /* Template Name: product_filter */ get_header(); do_action( 'pre_get_posts', 'COOLING'); ...
0
votes
1answer
418 views

Deprecated: mysql_connect():

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/gorilla911/public_html/wp-includes/wp-db.php on line 1520 ...
0
votes
1answer
1k views

wp_get_http has been deprecated. Use WP_Http instead

I use a premium plugin (for theme dev.) that has included the WordPress Importer plugin and I get a deprecated notice: "wp_get_http has been deprecated. Use WP_Http instead" But the WP_Http send me ...
2
votes
0answers
62 views

Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update

My server is updating to PHP 5.6 next week. I manage about 30 WordPress websites. I looked for a plugin that would check if any of the code throughout the other plugins and theme would break with the ...
15
votes
4answers
1k views

How to deprecate a function used in a plugin?

One of the functions I'm using in my plugin is polluting the global scope with a name that could collide with another function (used in another plugin). So, I guess I should deprecate it. But how ...
0
votes
1answer
1k views

wp_create_category deprecated?

Was trying to use this today: WP Create Category https://codex.wordpress.org/Function_Reference/wp_create_category Trying that (which I also assume it's only going to add terms to the built in "...
0
votes
0answers
106 views

Is there any harm in using RSS.php (or other deprecated features)?

I'm using RSS.php to parse RSS feeds on my site because I haven't got my head around SimplePie yet. Functionally, it works exactly as I want it to, but with error reporting on, I of course get the "...
1
vote
1answer
264 views

wp_customize_image_control deprecated add_tab alternative

I have been using add_tab to add a tab in Customizer with default images. It is deprecated and no longer works in WordPress 4.1. How can I create/find an alternative? add_action( 'customize_register',...
0
votes
0answers
395 views

Widget editor not displaying in Dashboard

I'm not sure if this is because of the new 3.9 update, because I haven't had to mess with any widgets in a while, but my active widgets won't display in the editor anymore. I've uploaded a screen ...
8
votes
1answer
103 views

Deprecating functions in a plugin class

I'm updating one of my plugins and I'm a little stuck with deprecating functions. Originally, my plugin had a global variable and the plugin's main class was instantiated and stored in the global ...
0
votes
1answer
87 views

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

I've been adding some data to the columns of two taxonomies in a theme I'm working on. I've hit something that's got me confused though. I'm using this hook manage_{$taxonomy}_custom_column but the ...
0
votes
1answer
103 views

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

After upgrading from WordPress 3.5.2 to 3.6.1, with define('WP_DEBUG', true); a site of mine's showing warning for some deprecated codes throughout the site. Some of 'em are generated from my codes, ...
1
vote
1answer
633 views

How a deprecated function can crash WordPress site while upgrading

It is said that deprecated functions used in plugins & themes can crash a wordress website while upgrading to newer version, I want to see an example of deprecated function that can cause a crash. ...
3
votes
1answer
8k views

Warning/Notice about functions.php

I have trouble about the notice shows on the top of the home page as: Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. ...
0
votes
2answers
179 views

wp_get_theme Warning: Illegal offset type

I'm using Post templates plugin. But its very outdated. I'm getting Warning: Illegal offset type at this line $templates = $themes[$theme]['Template Files']; Here is my full function code. ...
0
votes
1answer
321 views

Deprecated function get_user_by_email($email)

I tried to find replacement function for get_user_by_email($email) but no luck. This function I am using to allow user to log in by email address or user id. Is there any replacement function or ...
0
votes
2answers
48 views

Is it safe to update from 2.6.2 to the newest version?

I'm using Wordpress version 2.6.2 and now it shows in the page that Deprecated: Assigning the return value of new by reference is deprecated in /home/np14388/domains/<sitename>/public_html/wp-...
3
votes
5answers
18k views

How to replace bloginfo(template_url)

Basically I've used bloginfo(template_url) in a WordPress theme, but when I run theme-checker, it recommends to replace bloginfo(template_url) with get_template_directory_uri(), however when I use ...
3
votes
1answer
4k views

Use 'add_theme_support' instead of 'add_custom_image_header' In WordPress 3.4

I am debugging my theme using Debug Bar plugin, which is showing me this error (among a few others): Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( 'custom-...
3
votes
1answer
80 views

_deprecated_argument for constants

i'm working on updating a theme and previously it had used a lot of php CONSTANTS to set up some options as true or false. we're going to be updating these "decisions" to use add_theme_support() ...
21
votes
4answers
334 views

How long does a deprecated function live in core?

I'm curious to find out the process/philosophy behind removing deprecated functions from core. The Codex says this: These functions below have been deprecated. That means they have been replaced ...
4
votes
4answers
782 views

Automating deprecated call checks?

I've recently started revamping and re-releasing some abandoned (yet important) WordPress plugins. As I walk through the code patching other bugs, my IDE highlights deprecated function calls for me, ...
0
votes
1answer
2k views

Display only author posts in dashboard all posts panel

I would like to display only authors own posts in dashboard all posts section. As of now it displays everything. I found some code here which is written by @t31os Its working correctly. function ...
6
votes
2answers
821 views

What is the best way to handle deprecated functions?

Wordpress 3.3 has deprecated the add_contextual_help() functions and it's filters, so in order to continue supporting 3.0 - 3.2.1 and also comply with 3.3, I have done the following: global $...
0
votes
1answer
2k views

Undefined index: debuging error for theme option template snippet

Hello I tried to find the solution but couldn't get what I am looking for..I am getting error exactly as bellow.. Notice: Undefined index: page in C:\xampp\htdocs\site\wp-content\themes\mytheme\admin\...
2
votes
5answers
966 views

How to debug WordPress correctly?

I'm using a few plugins and UpThemes framework on my new website and if I turn on Wp Debug I can see that there are a few errors related to Deprecated functions (but website is working). What I would ...
0
votes
1answer
108 views

How to receive notification of deprecated API elements and functions?

There is some way to get notifications when deprecated API elements are used in WordPress. How is it done? Put WordPress in debug mode (which also shows all other types of errors) or is there another ...