Core is the conventional name for WordPress as it is distributed, so excluding all plugins and themes (even those by Automattic or WordPress.org itself). In principle, all questions on this site are about the possibilities of core.

learn more… | top users | synonyms

0
votes
1answer
26 views

Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?

I have a problem understanding the behavior of the Attachment Page Permalinks Into Setting-->Permalinks I have set http://www.example.com/sample-post/ as the preferred setting. When I upload an ...
2
votes
2answers
705 views

Clarification on filters and hooks

I am about to start my first WordPress project and I have the task of moving customized core code that override the core into separate functions/files (this way it'll be easier to maintain when we ...
1
vote
0answers
146 views

Does get_the_content_feed strip invalid tags?

My WordPress 4.2.2 generates a post feed with this <content:encoded><![CDATA[ <p> ...some html here... <iframe style="border: 1px solid #CCC; border-width: 1px; margin-bottom: 5px; ...
0
votes
1answer
28 views

remove rel=next on home page but not others

There is a major problem with most new templates for WordPress that want you to set your homepage to Your Latest Posts. This is to enable many of the great theme features to work. The problem with ...
8
votes
5answers
1k 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 ...
0
votes
0answers
21 views

Can compromised theme files lead to WordPress core files being modified?

I was recently given a website that had been hacked before I took over maintenance for it. There was a script injected to the top of every core WordPress and theme PHP file. The first step was to ...
2
votes
0answers
20 views

Render Selected Categories in Admin Edit Post Screen differently

Selected Categories for a post in the admin screen are rendered by: // Put checked cats on top $output .= call_user_func_array( array( $walker, 'walk' ), array( $checked_categories, 0, $args ) ); ...
0
votes
0answers
11 views

Category specific attribute

I wonder what is the best way to define specific attribute for category. My idea is following. I have some categories that are just wrappers, they don't contain any post so they are only parent ...
0
votes
2answers
15 views

WordPress core update fails - no issues with plugin updates

My WP installation does one-click plugin / theme updates without any hiccups, but updates to the core always fails. No specific reason is cited, except for a suggestion that it may be due to file ...
6
votes
1answer
686 views

Wordpress get_posts function, 1300 lines long

I'm just getting started learning about the WordPress Core. WordPress's codebase is the first large codebase that I've looked thoroughly into. The get_posts method in wp-includes/query.php is 1300 ...
-1
votes
2answers
58 views

is_preview() always return false

I'm just starting out on a new Wordpress project and for some reason I can't get the previews working. I have disabled all of my plugins and still i always get false when using is_preview(). ...
7
votes
1answer
232 views

What is the difference between update_post_meta and update_postmeta hooks?

I am working on an enhanced revisioning system, to create a log file for all changes made by users and/or algorithms concerning metadata attached to specific post types. While I am perfectly aware ...
9
votes
2answers
301 views

Explanation of update_post_(meta/term)_cache

I was reading over some best practices from 10up and they mention setting these two flags to false in a WP_Query ( depending on what you're querying ): 'update_post_meta_cache' => false: useful ...
0
votes
0answers
12 views

Can't see audio when I acces with ajax

I have created an ajax portfolio. It works fine, but when I upload an audio, this is not display. If I acces to the post via my blog page the audio is there. I inspect this file and I discover a ...
0
votes
0answers
68 views

How to make a plugin by customizing a wp core file (class-wp-widget-rss.php)

I need to customize a wp core file, but I know it's not recommended. How to turn this custom file into a plugin? The file I'm talking about is wp-includes/widgets/class-wp-widget-rss.php and I only ...
3
votes
3answers
4k views

HowTo: Add Class to Sidebar Widget List-Items

The newest version of Bootstrap (v3.0) adds a new List Group component which has the following structure: <ul class="list-group"> <li class="list-group-item">Cras justo odio</li> ...
1
vote
0answers
55 views

Least expensive way to get table prefix in multisite installation

I am writing an api that will have to handle extremely high volumes of calls so, in short, I can not afford to load the WordPress core every call. I have no problem building the API to use the ...
0
votes
0answers
57 views

Post_name is missing after wp_update_post

I have a problem with my CPT. Registered a partner post type and I want the partner to be able to edit it if the post is draft or pending. I can edit the whole post instead post_name. Post name will ...
6
votes
2answers
2k views

Are the WordPress Core CSS styles really all nessesary?

On WordPress Codex there are these CSS styles listed. It's a quite big list of styles, but it seems they are doubled unnecessary. It says: Each Theme should have these or similar styles in its ...
1
vote
1answer
983 views

Conditional tag is_page with a custom post type

Accordingly to the is_page documentation, supplying the slug as an argument WP can tell me whether the current page is the one represented by the slug. Perhaps I am using the wrong slug? However I ...
1
vote
1answer
63 views

How does one dismiss the 'upgrade notice' when managing upgrades with SVN?

I manage a site as a Subversion checkout of a tagged release (e.g. http://develop.svn.wordpress.org/tags/4.3.1 ), which means that I don't use the built-in core updater but rather just do a svn sw to ...
9
votes
2answers
3k 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: http://upload.wikimedia.org/wikipedia/commons/3/3d/...
7
votes
3answers
785 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 ...
0
votes
1answer
60 views

Unabled to Change Permalinks - Even Using the “Edit” (Resets to Original Permalink on “Update”)

I have tried everything in every post I have been able to find about changing permalinks for existing posts and pages. I have gone to settings and change the permalink structure in hopes that it would ...
0
votes
0answers
9 views

What are the proper file & directory permissions for WPMS

I am looking for some sort of concise reference document that indicates what the proper *nix permission settings need to be for all WordPress files and directories. I am also would like to know what ...
1
vote
1answer
50 views

Spammers attacking my Wordpress Site - Removing URL field from core? [closed]

I removed url field from my comments so there is just basically name, email and textarea field. But spammers are keeping spamming me with comments that has URLS even if comments form doesnt have any + ...
0
votes
1answer
28 views

Create a patch using TortoiseSVN

I use TortoiseSVN for managing a couple of plugins I have on the WP repo. Now, I'd like to try my hand at contributing to core with a little patch. I've followed the instructions that can be found ...
6
votes
1answer
431 views

IP address whitelist to update WordPress core and plugins

I'm working on a site based on a host with quite strict firewall rules. It won't allow anything running on the site to contact an external server unless its IP address is explicity whitelisted, and I ...
1
vote
0answers
22 views

Why does the usermeta table contain html entities?

As a plugin developer, I have been storing special characters like ampersand as is in MySQL tables, then converting them to html entities after retrieving them for display. Now I discover that (for ...
2
votes
1answer
363 views

How to listen to color changes on the color picker?

I am trying to run some custom jquery function every time the colorpicker's color change. The colorpicker is include as part of the WP core. I have been looking at the JS code, but I can't figure out ...
1
vote
1answer
31 views

Are all hooks/functions tied to Kses meant for sanitization?

I'm currently learning WordPress hooks and am delving into core to see what's happening in there. I noticed there are filters in wp-includes/default-filters.php with PHP comments about Kses. I wasn't ...
0
votes
1answer
187 views

How long do users stay logged in if they DON'T check remember me?

As the title states, I'm wondering how long users stay logged in if they don't check the "Remember Me" option. I've heard that if they DO check it, it keeps them logged in for 14 days. But what if ...
14
votes
1answer
4k views

What's the difference between get_home_path() and ABSPATH?

What's the difference between get_home_path() and ABSPATH? Isn't the point of both to point to the WordPress install root?
0
votes
1answer
26 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
70 views

Where's the explanation of the TinyMCE's vars in the WP core?

I am modifying my TinyMCE editor for my users, and I'm using the example in the docs as a starting point. function my_format_TinyMCE( $in ) { $in['remove_linebreaks'] = false; $in['...
7
votes
4answers
7k views

“Unexpected error” on update requests

It needs connectivity to wordpress.org and is timing out. I am behind a corporate firewall. I have never had this issue come up before in previous versions. Why does themes.php need access to ...
0
votes
0answers
228 views

How To/What triggers a Wordpress auto update?

I installed Wordpress 4.0.1 and added this to my wp-config.php (via this link) define( 'WP_AUTO_UPDATE_CORE', true ); I then visited my site (I read somewhere before that the site has to be visited ...
0
votes
1answer
29 views

A thin line between native wordpress bahaviour and 3rd party themes

Bear with me as i try to learn WP. Lets say we have a 3rd party theme were the route of the request is somehow like this. Root theme index.php diverts to a nother php file which decides what page to ...
1
vote
1answer
671 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
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 ...
0
votes
1answer
86 views

Create a Page template selector page

I'm running around with an idea in my head that I would like to make but I don't really know how or where to start. In a custom theme I had to make serveral templates for one of my clients. I ...
0
votes
1answer
70 views

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 ...
0
votes
1answer
196 views

wordpress update will overwrite files changes?

I edit function.php and page.php files for my custom use, everything is fine, but i have query that if wordpress will update then it will overwrite all the files and changes made ??
0
votes
1answer
75 views

how does the rendering works?

i am trying to get a rough idea about how Wordpress renders the final content, built-in and plugin content. Rendering means to me, manipulating direct or indirect(delay via ajax,..) the DOM. To keep ...
0
votes
1answer
126 views

Display Custom Column in CPT Taxonomy

I am trying to add a column to one of my custom post types, but only on the edit taxonomy page. I have a taxonomy registered called "event-categories" for my custom post type "events". I can ...
0
votes
1answer
141 views

How to change value in wp-include/taxonomy.php without exchanging the Wordpress-core

I had the problem that tags of private posts didn't show up in a widget tag-cloud even if the user is logged in. The reason seems to be the value of "post_status" in the function ...
1
vote
1answer
2k views

Disable feeds for specific custom post types

I want to remove the feeds for specific custom post types. Most recommended methods are not clean. There seems to be a option called $args->feeds but this does not work within the ...
5
votes
2answers
457 views

Passing a hardcoded page/post ID into `get_post`

I see people using this to pull in page content on their home pages, remove specific categories from archives etc.. e.g. $post = get_post( 5 ); Someone suggested this was bad practice. Why is it ...
1
vote
0answers
214 views

Hook before & after plugin / core update

I'm working on a maintenance plugin for my website and I want to enable it before plugin/core upgrade starts and disable it after plugin/upgrade ends. Any ideas ? Thanks! :) PS: all I know is I can ...
0
votes
0answers
51 views

Change the functionality of wordpress users module in admin

I want to restrict wordpress admin to view all users in user list. For say, I have created custom roles (company users, employee). A company user type role can have multiple employees. I want ...