The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
200 views

What is <# code #> in media-template.php, and how does it work?

I'm checking /wp-includes/media-template.php and just found this: <# if ( data.compat && data.compat.meta ) { #> {{{ data.compat.meta }}} <# } #> Never seen <# #> or ...
0
votes
1answer
329 views

why there is a large file named core in wpmu's directory?

why the file named core is here? can i delete it? ls -lh total 37M -rw-rw-r-- 1 hugemeow pg 16 2012-03-04 04:22 a.php -rw------- 1 hugemeow pg 30M 2012-10-16 10:41 core // this is the large ...
2
votes
1answer
783 views

How to disable `SQL_CALC_FOUND_ROWS` [duplicate]

Possible Duplicate: wordpress query causing load In the site I'm trying to optimize, I noticed several queries that are rather slow and start with SELECT SQL_CALC_FOUND_ROWS Searching this ...
1
vote
2answers
97 views

Find out if there is a available core update?

I want to set up a function that notifies me when a core update is available. But i can't find any functions that check for updates. I have looked at list_core_updates() and it may be possible to ...
0
votes
1answer
953 views

Headers already sent - Wordpress core

I'm getting an error on my site regarding "headers already sent": Warning: Cannot modify header information - headers already sent by (output started at ........./wp-admin/menu-header.php:161) in ...
0
votes
1answer
342 views

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 ...
0
votes
2answers
872 views

Function to change a label (Username) in a core WordPress File (wp-includes/general-template.php)

Would like to change 'label_username' => __( 'Username' ) on line 258 of wp-includes/general-template.php to 'label_username' => __( 'Username or Email' ) Changing core files is a not recommended ...
4
votes
1answer
49 views

What is the purpose of this line of code in wp_trim_excerpt? [closed]

Can someone please explain what the purpose of this code is: $text = str_replace(']]>', ']]>', $text); I'm referring to a line of code inside wp_trim_excerpt(), but I've seen something very ...
7
votes
2answers
1k views

Looking for WordPress System Diagrams

I am looking for WordPress chart/diagram system design. I found only the template hierarchy diagram, but it's only part of the system. source: ...
1
vote
2answers
2k views

How do I fix this error: Warning: invalid argument supplied for foreach()?

I recently moved a wordpress install from my local instance to a dev server. For the move, I installed a clean version of wordpress 3.4, moved exact duplicates of the file structre, and used the ...
0
votes
1answer
166 views

Allowed memory size of 33554432 bytes exhausted (tried to allocate 9967617 bytes) in …\wp-includes\functions.php

When a script times out, and there is nothing you can do about it ( cause it's running on a bloddy shared hosted resource where you have 0 control over the script time-outs ), can you run register ...
1
vote
1answer
679 views

How to override wp_insert_comment()

I am trying to override wp_insert_comment() (wp-includes/comment.php). I added the following lines of code in my functions.php file, located in my theme : add_filter('wp_insert_comment', ...
0
votes
1answer
49 views

What would make the plugin update process to complete but don't report as such?

This is happening in two sites I've restored using BackupBuddy*. One is single, the other Multisite. .* this may render the question as "too localized", but maybe it could happen with any other ...
1
vote
0answers
80 views

Can I hook into wp_update_core outside of the admin?

I'm trying to bring some of the admin functionality to a custom front end in WordPress. Questions of security and pragmatism of this aside, is there an available hook to trigger wp_update_core outside ...
0
votes
3answers
853 views

What problems maybe happen if I remove “wp-” prefix from wordpress folders and files?

I want to hide wordpress signs from my site. So I don't want other people know that I built the website via WordPress. So I decided to remove wp- prefixes from all wordpress folders and files. And I ...
1
vote
1answer
410 views

Add More Fields to Users Pages (Admin Panel)

So I'm trying to create some custom fields for users. I need to give users access to a 30 day trial of some software and I want to keep track of that in the users page of administration panel. If the ...
0
votes
1answer
448 views

Using native wp image support instead of timthumb

After having no luck with timthumb, and on the advice from this site I am going to edit my theme so it works using native wp functions. However I'm a little stuck. I found this ...
0
votes
1answer
209 views

How to remove wordpress admin bar in dashboard

I would like to rebrand wordpress. Can anyone tell me how to remove it from dashboard? Is there any hook available. Or I should edit core files. If i should edit core file can anyone tell me which ...
0
votes
1answer
65 views

Why doesn't WP recognize images in posts like other content? [closed]

I've noticed a problem I have with images in my posts: they seem to go unnoticed to my CSS. For example, I have a span tag that is adding a 100px margin to the top of itself under the last paragraph ...
1
vote
2answers
165 views

How do I implement a .diff changeset from core.trac.wordpress.org locally?

I have a local copy of the latest version of wordpress that I set up using svn co http://core.svn.wordpress.org/trunk/ There is a diff that I want to pull into my local fileset: ...
1
vote
0answers
91 views

How to return an array of posts with the comments template intact for each post [closed]

Has anyone run across a way to build a page of posts that includes the comments and discussion form(s) for each post inline with the list? I tried this a few ways today and found it quite difficult. ...
7
votes
2answers
487 views

Why does get_term() require taxonomy? Are term_ids not unique?

A related WPSE question asks how to get the term by specifying ID only, without specifying taxonomy. My question is more philosophical. Generally, stuff in WP core is there for a reason. I'm trying to ...
0
votes
1answer
868 views

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"> ...
7
votes
2answers
484 views

What's $object->filter for?

I keep seeing this pattern, and wonder what it's for, how WP uses it internally: if ( empty($post) ) { if ( isset($GLOBALS['post']) ) $_post = & $GLOBALS['post']; else ...
4
votes
2answers
154 views

How would I compare and remove hacks to core?

I have been put in charge of a site that have a lot (and i mean it) of core hacks, some are pretty easy, some are really hard to spot (like removing a do_action on the_content. So, my question is , ...
5
votes
2answers
430 views

Update to older wordpress version from admin?

I have a Wordpress 2.7.x setup that I would like to migrate to the latest version 3.2.1, however I need to make a stepped-upgrade as some plugins need an older version first (3.0.6 IIRC). However ...
12
votes
4answers
157 views

Why do some core functions get wp_ while others do not? What's the rule?

Is there some guideline or rationale behind why some WP code functions are prefixed with wp_ ? eg: wp_insert_post() vs. update_post_meta()
4
votes
3answers
2k views

$GLOBALS array for wordpress

is there a file where wordpress defines it's $GLOBALS? i'm just curious as to what wordpress uses it for and for what purpose. That's all!
1
vote
2answers
466 views

error: An Unexpected HTTP Error occurred during the API request

I'm using wordpress version 3.1 and if I try to upgrade any plugin on any of my sites I get the error message error: An Unexpected HTTP Error occurred during the API request. Not by upgrading ...
0
votes
1answer
49 views

Is there a wp-config.php option or constant that I can set to allow me to download nightly / beta builds?

Nightly Builds or Beta Releases? I like using the /wp-admin/update-core.php utility to update wordpress. But I'd like to be able to use it to download beta releases or nightly builds. Does anybody ...
4
votes
5answers
2k views

Change the login button on the login page

I would like to be able to change the text on the Log In button in wp-login.php - however, it's a bit more complicated than that. I want to be able to change it in the theme, rather than editing the ...
3
votes
1answer
402 views

How Does Wordpress Uninclude/Deactivate A Plugin?

Wordpress uses the Observer Pattern for its plugin system and operates on the premise of checking if a plugin is activated, scanning the plugins directory and storing everything in an array in the ...
3
votes
3answers
2k views

Loading template files from a subfolder in my theme?

I am working on a site that will have up to 30 templates in it. I don't want to have all those templates at the root of my theme folder cluttering up everything. I know how I can modify the ...
12
votes
3answers
2k views

What is the role and history of the $content_width global variable?

I just stumbled over a global variable called $content_width. It was new to me, so far I could see that it's used in themes, both the standard twenty ten one and third party ones. It looks like that ...
1
vote
1answer
279 views

In what part of the Wordpress core does the users table and usermeta table get joined?

I have been trying to work out just where in the massive jungle of Wordpress include classes the usermeta table is joined onto the users table and if so, how does it work? The one confusing thing ...
2
votes
2answers
1k views

Updating Wordpress - the best approach (updating wp core, plugins and db)

What is the best approach (steps) to update Wordpress when I have to update all of the following: wp core plugins database I came across this post http://codex.wordpress.org/Updating_WordPress ...
1
vote
2answers
468 views

Changing the comments link produced by the get_comments_link() and get_comments_pagenum_link() functions

Currently my theme calls upon get_comments_link() to create the standard anchor #comments to link to the comments below the post, as does the get_comments_pagenum_link() function on paginated ...
2
votes
2answers
776 views

Replacing the default content created while the site creation

How do you replace the default title for first comment? Mr WordPress on Hello world! I could not able to locate this in theme's comments.php file I want to edit the title 'Mr wordpress on Hello ...
6
votes
1answer
468 views

is it possible to replace the use of gd_lib with imagick or ImageMagick?

i'm looking around for a solution since weeks and can't make anything work yet. the problem is that my server is running debian/lenny and it's not supporting the bundled gd_lib which i need for ...
7
votes
5answers
903 views

What are some reasons why you should not hack WordPress core files?

Often a quick solution to a problem, can be solved by hacking the WordPress core, that is changing the code that is WordPress itself. This is a very dangerous road to take! Don't do it, ever! You ...
12
votes
3answers
2k views

Modifying WordPress core files

Why? Sometimes an easy fix to altering the behavior of WordPress itself or a plugin could be to alter the files of the plugin or WordPress directly. When coming up with such an idea, the usual ...
11
votes
3answers
832 views

Easiest Way to Create a Patch for Submission to WordPress Core?

I've submitted a few patches for WordPress core on Trac (one of which has been used) but every time I think about doing it I cringe because my setup for doing so is incredibly tedious. Can someone ...