Articles of core

Best way to salvage a very old WP site

I have a client who’s in a situation with her website: her ex-husband owns the hosting company and won’t let her have FTP or any other server access, she still has dashboard access, she wants to move the site to another hosting provider, and the site is on version 3.5.1. – hasn’t been updated since […]

getting notifications about updates only in the “core” page

I run a few WP sites and keep track of updates on a daily basis. Normally, I go into the Plugins page and check if there are updates to the installed plugins accordingly. Lately, I’ve found out that even though this page doesn’t show new updates, when I go into the “/wp-admin/update-core.php” page, suddenly there […]

Most wp_nav_menu parameters ignored

I’m trying to get a text-based navigation menu for the footer of my site. I’m using the wp_nav_menu() parameters as directed by Codex. He’re a snippet of code (in footer.php): <div id=”footer”> <?php wp_nav_menu(array(‘depth’=>1, ‘after’=>'<span class=”sep”>|</span>’)); ?><br /> <div id=”address”> <p>…</p> </div> <div id=”contactInfo”> <p>…</p> <p>…</p> </div> </div><!– #footer –> So, my goal is to […]

How to Modify a Widgets UL and/or LI Classes

Im attempting to use twitter UL styles on a custom menu widget. For example, in BootStrap they have a Nav List Style for UL’s <ul class=”nav nav-list”> <li class=”nav-header”>List header</li> <li class=”active”><a href=”#”>Home</a></li> <li><a href=”#”>Library</a></li> … </ul> Which I am trying to integrate with a Custom Menu… <div class=”menu-footer_left-container”> <ul id=”menu-footer_left” class=”menu”><!– I need to […]

What's causing this error? “Warning: Invalid argument”

I noticed today that my error logs are littered with this information. I’m not quite sure what’s causing it. Has anyone seen this before? [Mon Mar 25 17:24:23 2013] [error] [client] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/mysite/wp-admin/includes/plugin.php on line 1290, referer: http://mysite/contact/ Line 1290 is the foreach in the following code. I […]

Possible to add a statement to a core file?

I would like to add one line to a wp core file. Basically on the ‘edit.php’ page, just right above <?php include(‘./admin-footer.php’); I would like to add an php include statement… include(‘./custom-file.php’); The custom-file is located inside a plugin, not a theme… so if I write it inside my plugin function.php, the url will be: […]

Cannot redeclare wp_update_core()

I think it’s right after the WordPress update, we can’t access the wp-admin to log in anymore. Fatal error: Cannot redeclare wp_update_core() (previously declared in C:\DWASFiles\Sites\pyromaitre\VirtualDirectory0\site\wwwroot\wp-admin\includes\update.php:288) in C:\DWASFiles\Sites\pyromaitre\VirtualDirectory0\site\wwwroot\wp-admin\includes\deprecated.php on line 1076 What cause this? How can I resolve it?

Why There Is No “get content by ID” Function

When i need to get content of a post with ID, I’m always using this function : function getContentByID($id) { // $content_post = get_post($id); $content = $content_post->post_content; $content = apply_filters(‘the_content’, $content); $content = str_replace(‘]]>’, ‘]]>’, $content); return $content; } Can you tell me, why there isn’t any core function for this ? There are functions […]

What Generated Classes and IDs That Is Always Used On All Themes?

Just wondering if there is a way to get a complete list of wordpress generated css classes and ids that is always automatically assigned to any themes. I’ve read here, but it seem not list them completely. May be someone here can pointing me to what wordpress core file/s that is doing that?

Is it possible for a plugin to force reading and writing of uploaded images to a database instead of to a filesystem?

I am trying to configure a WordPress site using a server cluster and independent file systems. The problem is keeping the wp_content/uploads folder synchronized across all the server instances. My preferred solution is to “write” and “read” these files to/from a shared database. So my basic question is whether this is possible to code in […]