Your custom code should always be built as a plugin, not as a fork of core.
I agree, you don’t have a production install. Get a proper development install, make your plugin, and put it on a proper production install.
Your custom code should always be built as a plugin, not as a fork of core.
I agree, you don’t have a production install. Get a proper development install, make your plugin, and put it on a proper production install.