Articles of core

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 file -rw-r–r– 1 hugemeow pg 397 2012-01-26 07:53 index.php -rw-r–r– 1 hugemeow pg 17K 2012-01-26 07:53 license.txt -rw-r–r– 1 […]

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 also removed wp- prefixes from file contents with Notepad++. So my question is what problems maybe happen […]

PHP Error When a plugin is active

PHP Fatal error: Uncaught Error: Call to undefined function wp_underscore_audio_template() in /wordpress/core/4.8/wp-includes/widgets/class-wp-widget-media-audio.php:201 Stack trace: #0 /floorcaresupplies/wp-content/plugins/siteorigin-panels/inc/admin.php(785): WP_Widget_Media_Audio->render_control_template_scripts() #1 /wordpress/core/4.8/wp-includes/class-wp-hook.php(298): SiteOrigin_Panels_Admin->js_widget_templates(”) #2 /wordpress/core/4.8/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #3 /wordpress/core/4.8/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /wordpress/core/4.8/wp-admin/admin-footer.php(99): do_action(‘admin_footer-po…’) #5 /wordpress/core/4.8/wp-admin/post.php(292): include(‘/wordpress/core…’) #6 {main} thrown in /wordpress/core/4.8/wp-includes/widgets/class-wp-widget-media-audio.php on line 201 Would anyone know how to solve this error? i keep receiving it when activating […]

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 — never never So any help to code a function to achieve this would really be appreciated.

Why WordPress Core Functions Not Using function_exists()?

This might be a stupid question. But I thought to ask it here. It is really bad changing core file and I know that there are actions and filters in WordPress. But there are some limitations. So why WordPress Core Functions Not Using function_exists()? I mean something like below example in core files. if(!function_exists(‘wp_insert_post’)){ function […]

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’, ‘my_insert_comment’); function my_insert_comment($commentdata) { /* Some stuff */ } Here is a line found in the original wp_insert_comment() function : function wp_insert_comment($commentdata) { /* Some stuff */ do_action(‘wp_insert_comment’, $id, $comment); return […]

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 of the admin?

How do I set a custom WordPress update repository?

I’m co-authoring a white paper on utilising WordPress as a foundation for a web-app, I would like to change the repository that the core WordPress updates from, the latest additions of automatic updates in 3.7 are very nice, but how would I go about pointing some installations at a custom server repository of mine? I […]

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. ), which means that I don’t use the built-in core updater but rather just do a svn sw to each new tag. The problem I’ve got (and it’s really not a biggie) is that the “WordPress 4.3.1 is available! Please update […]

Spammers attacking my WordPress Site – Removing URL field from core?

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 + plus it has recaptcha + akismet. So probably they are going directly to my website to spam their comments […]