Web lists-archives.com

Re: OT: maybe_hash_hex_color not in formatting.php despite WordPress documentation

On Mon, Aug 7, 2017 at 12:00 PM, Kent West <westk@xxxxxxx> wrote:

Fatal error: Call to undefined function maybe_hash_hex_color() in /web/FIFTHANDGRAPE/wp-content/themes/hueman/functions/dynamic-styles.php on line 108

Googling reveals that ever since version 3.4 (long before the 4.7.5 I have installed), this function was moved from a "customizer" file to wp-includes/formatting.php (such as per the documentation at https://developer.wordpress.org/reference/functions/maybe_hash_hex_color/).

But when I look in that file, there is no "maybe_hash_hex_color".

Not being proficient in Wordpress, you can guess that it was my fault....

Debian's WordPress installs into /usr/share/wordpress.

I thought it wasn't a good idea to have user-changeable files in the /usr partition, so apparently I copied the /usr/share/wordpress to another location. While the original Debian install has been updated over the past year that my site has been sitting unused, the copy has not, so when I got back around to working with it this week, I'm using the older copy apparently (or some mish-mash of old and new).

I should be able to sort this out.

But if I still have your attention, what are the pros/cons to leaving the Wordpress installation in the /usr/share directory? As the WordPress admin changes themes, etc, he's tinkering with the Debian "system". Also, might other users tinker with the files there in some fashion (making comments on blog articles, using the membership plugin to add an account, etc)? Doesn't it make more sense to have such user-changeable files on the /home directory or someplace similar outside of "the system"?


Kent West                    <")))><
Westing Peacefully - http://kentwest.blogspot.com