The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
33 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
17 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
0
votes
0answers
26 views

How to modify Genesis core function?

I am trying to modify a Genesis framework core function. I want to remove strip_shortcodes() from the function get_the_content_limit(). Here is my code: if ( wp_get_theme( 'genesis' ) ) { // replace ...
6
votes
4answers
302 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
29 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
51 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
91 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
41 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 ...
0
votes
0answers
28 views

Duplicate WP3.0 menu php files?

He's my problem: I want to have a single page that a WP-admin can build by including different parts of the site by choosing posts. (I know the admin could add these posts to a category and then ...
5
votes
1answer
311 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
81 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
52 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
170 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
184 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
165 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
234 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
3k 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
295 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
1k 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
686 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
4answers
975 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
213 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 ...
5
votes
3answers
4k 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 ...