The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
16 views

Edit admin post page

I have to customize the admin page where you edit the other pages "wp-admin/post.php". I have to add a lot of things, and delete others, change colors and add a custom menu to the top. I don't know ...
0
votes
1answer
16 views

Safely editing core files

I want to edit wp-comments-post.php so that if for example someone tries to post a comment with no content they will get a popup box telling them they cannot post an empty comment instead of the page ...
0
votes
1answer
30 views

disable WP_error: authentication_failed

I am modifying my wp-login.php but from within functions.php (in order not to hack the core). I need to disable one WP_error with code: authentication_failed. if i hack the core and modify ...
0
votes
0answers
31 views

Alter wp_post table vs. post_meta performance/speed

I'm searching for the most efficient way to link a post to multiple users. By default each post in wp_post has a post_author column, which is linked to the corresponding user ID in wp_users. Assume ...
0
votes
0answers
29 views

changing media.php and comment.php inside wp-includes

I hired an Odesk developer to add some functionality to my theme/plugin. Today he sent me an email telling me which files he modified in my test site I have him working on to achieve the new ...
0
votes
0answers
96 views

Removing a line from a WP core function (comment_template.php) - filter or other technique?

a The effect I want to achieve - at least at this point - is simply to have the comment reply link continue to appear below comments even after "max_depth" for threaded comments has been reached. ...
1
vote
2answers
106 views

Where should I copy a PHP file from wp-includes to, in order to override it in my child theme?

I've seen plenty of questions about changing stuff inside wp-includes and plenty of answers saying don't, under any circumstances. However, I need to change something that's currently in there! I'm ...
1
vote
1answer
23 views

Use hooks for undo/redo admin actions?

Is it possible to implement a undo/redo by tracing admin actions? I know its gonna be a heavy task, but is it possible at all? Plugins aside of course, core is enough, though
6
votes
4answers
334 views

Cleaning up WordPress to improve performance?

Looking over the current WordPress codebase it's clear that functions are over-used. My count is over 8,100 functions/methods are defined inside the WordPress codebase. That is terrible, and a ...
1
vote
1answer
34 views

How to make this change without changing the core? [duplicate]

I couldn't find a way to change this in an upgrade friendly way, and I know I mustn't touch the core! I need to change the value 'number' to 10 in wp-includes/default-widgets.php wp_tag_cloud( ...
1
vote
1answer
61 views

How WordPress is able to change locale without using setlocale

In my plugin I print out the current locales via $originalLocales = explode(";", setlocale(LC_ALL, 0)); var_export($originalLocales);die; Obviously the result is same as the WPLANGdefined. ...
1
vote
1answer
137 views

Changing a WordPress core function without hacking core

I am looking to change one line within a core function. The function is wp_allow_comment() located within /wp-includes/comment.php function wp_allow_comment($commentdata) { global $wpdb; ...
0
votes
1answer
46 views

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) { //http://wordpress.stackexchange.com/questions/9667/get-wordpress-post-content-by-post-id ...
5
votes
1answer
480 views

Modifying the media-template.php file, the right way?

The [gallery] shortcode accepts the columns='0' as an attribute so that it doesn't insert any breaks in the HTML between gallery items, however this option is not available in Gallery Settings ...
4
votes
1answer
91 views

Why are double-periods (“..”) invalid in a Wordpress image filename?

ms-files.php contains the following code fragment: $file = rtrim( BLOGUPLOADDIR, '/' ) . '/' . str_replace( '..', '', $_GET[ 'file' ] ); if ( !is_file( $file ) ) { status_header( 404 ); die( ...
0
votes
2answers
110 views

Make changes of wp-db.php file persistent against updates

I've added $this->query("set session wait_timeout=600"); into wp-includes/wp-db.php file because of "MySQL has gone away" errors in every query and I need to find some way to do the changes in file ...
0
votes
3answers
213 views

Which core file is responsible for gravatars?

I realize modifying the core files is frowned against but I strongly believe that the WP core SHOULD NOT rely on external links. In my situation, I'm behind the Great Chinese Firewall, the gravatar ...
0
votes
3answers
234 views

Replace core wordpress file with my own

Editing core files is never an option. - the question is NOT to edit core files, but rather find a way to replace certain files using a plugin or other built in function. I require more control over ...
2
votes
3answers
207 views

How to disable core and plugin updates

Is there any way to disable core and plugin updates? I am modifying a plugin and bit of WordPress Core (I know its a sin to do so), but can't help it.
1
vote
1answer
287 views

Removing subcategories from permalinks [duplicate]

I run a small news site with tens of thousands of entries. I'm currently importing all of these into wordpress by rebuilding our old CMS into wordpress. So far, everything is coming over smoothly. ...
3
votes
2answers
5k views

How can I modify what is being output in wp_head, whether by a theme or Wordpress in general?

I've been working on performance of my site using YSLOW, and noticed that Wordpress it outputting things in my document head that I know I don't need. For example, I'm already calling jQuery 1.9 from ...
1
vote
0answers
370 views

vQmod-like tool for Wordpress? [closed]

I realize that vQmod works on opencart because it is MVC. Is there any tool out there that would function LIKE vQmod, to inject core hacks into--say, for example--theme files, plugins, et al, without ...
1
vote
1answer
2k 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 ...
7
votes
2answers
809 views

How to share WordPress core library

We have ten blogs running on a little EC2 instances, we want to see if all the blogs can share the same wordpress php code so When I update the Wordpress, all the blogs get updated Save memory in ...
5
votes
3answers
2k views

Possible to fix admin URL behind proxy issue without hacking core?

In a previous question I was trying to solve an issue where WordPress was using the wrong url in sortable column headers & pagination in the admin when behind a proxy, the only solution that ...
0
votes
3answers
1k 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
2answers
1k views

How to: Avoid a bunch of useless Auto Draft ID entries related in posts table and disable autosave feature in 'post-new.php'?

I got it! Buuuuut I had to edit 2 core files, yes! 2 core files :( I know is not a cool plugin hack, but maybe a cool patch for WP, Im using 3.3.1 version. Well, here is my little hack/contribution: ...
10
votes
3answers
1k views

changing wp-admin/widgets.php

We want to design the widgets page in the admin panel a little differently, mainly in order to help the site administrator understand where each widget will appear in the site: For that, we need ...
0
votes
1answer
215 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 ...
2
votes
1answer
1k views

Two domains on one Wordpress Installation

I recently changed the base domain on my Wordpress website from http://www.fsdegrees.com to http://www.56degrees.co.uk. I would like to create various of 301 from old domain to new one, but for some ...
7
votes
3answers
5k views

Add class to before_widget from within a custom widget

I have a simple custom widget that asks for its width (that is used later in the front end). The width field is a select dropdown, so a user have predefined options. I will have many instances of my ...