Tag Info

Hot answers tagged

14

The only reason why the 3.3.3 milestone was marked as completed is because leaving the milestone open interfered with our ticket reports for 3.4.1. (I forgot that milestone closures are reflected in the timeline.) Generally speaking, we assign tickets to the next minor milestone if they are reporting an immediate regression. So, a regression in 3.2 that ...


13

If you need to get the wordpress version in your script, there is a global variable: $wp_version (right now it's something like '3.1-RC3-17376') It contains the wordpress version. If you need to acquire if from a file, you can read it from /wp-includes/version.php: function getWPVersion() { $path = '/path/to/wp-install'; include ...


10

Always write plugins for the current version and keep the nightly builds from the upcoming versions in mind. Anything else doesn't matter. Edit As @toscho pointed out in a comment: There might be some explanation needed to why it is that way. Because I say so. Plugins only need to be compliant with core because if all play with the rules, nothing will ...


7

You can hook into style_loader_src and script_loader_src and run remove_query_arg( 'ver', $url ) on the URL: <?php /* Plugin Name: Remove version parameter for scripts and styles */ add_filter( 'style_loader_src', 't5_remove_version' ); add_filter( 'script_loader_src', 't5_remove_version' ); function t5_remove_version( $url ) { return ...


7

This is a bit of code I wrote a while back to do WP version detection in the most obvious ways: http://ottodestruct.com/class-wp-detection.phps There are other methods, more subtle and less obvious. His method is file fingerprinting. Basically checking for whether certain files exist or not.


6

headdesk Permissions on all WordPress files should be 644. Permissions on all WordPress directories should be 755. Exceptions: The uploads directory may need to be 775 or 777, depending on your server configuration. wp-config.php should be 600, 640, or 644, whatever is the lowest number that works. Never, ever, give higher permissions than those. ...


5

You can also just go to http://site.url/readme.html in a web browser. The readme file ships with every version of WordPress and displays the installed version number prominently at the top of the page. Also, if you can view your site's front-end (I know you said you can't access the dashboard, so I'm just assuming your blog is public), you can "view ...


5

Most WordPress installations are outdated. Currently, only 5.2% of all installations are running on the latest release 3.6. 27.3% are still on version 3.0. You might think you have to support these old versions with compatible code. But think about the implications: You have to test all officially supported versions. You have to handle incompatible APIs ...


5

I just found a solution as an automated service over at http://de.wpseek.com/pluginfilecheck/ It's does exactly, what was asked for including the generation of list of used functions and giving a suggestion for the Plugin-Header comments.


5

I would be very afraid to develop on 3.8.1 and try to run the same code on 3.5.1. Things have changed. 3.5.1 is ancient by web app standards. I can't say that I have ever tried to "backport" like that, but it does worry me. Much of your code would work. WordPress itself is pathologically backwards compatible, but if your code uses new features (intentionally ...


4

Usually a plugin developed in WordPress version will run fine on several newer versions. What you need to care about is 'deprecated` features/apis in WordPress. Any API in WordPress is not removed overnight, rather it remains deprecated for several versions. You will get such a list here: http://codex.wordpress.org/Category:Deprecated_Functions When you ...


4

Remember the release of WordPress 3.0 required PHP5. At the time, many hosting companies were not yet running PHP5 on their servers. So there was a period of time when some WordPress sites COULDN'T update to WordPress 3.0 because their hosting companies were not keeping their servers up to date. Many years have now passed (3+) since the release of ...


4

This is explained in the core ticket #12554. Change label in UI for Post Thumbnail and Page Image to "Featured Image" for both We should change the UI label for the post thumbnail box on post and page editor screens. It's post thumbnail for posts, and page image for pages, but it's not always a thumbnail and the labeling is inconsistent. Let's call ...


4

When a major release is made, fixes are made to it, but it's rare that fixes to older versions are made. It has happened before, but it should never be relied upon, and there are a lot of bugfixes that are never backported. Sometimes a version will be tagged before a major release that isn't publicly announced, but these shouldn't be used if you have the ...


4

see: http://clark-technet.com/2010/12/wordpress-self-hosted-plugin-update-api Basically the idea is to hook your update checking function to the pre_set_site_transient_update_themes filter. The version array key you return from this function will be compared by WP to the current theme version from style.css.... Use the admin_notices action to make your ...


4

To always get latest plugin take for example my plugin: http://wordpress.org/extend/plugins/wordpress-file-monitor-plus/ the download link for the latest is: http://downloads.wordpress.org/plugin/wordpress-file-monitor-plus.1.1.zip but if you remove the version from the download link you always get the latest version: ...


4

You can hook on option_update_core and edit the update url, as a plugin you can do something like this (Remember to disable the plugin after updating wordpress) add_filter('option_update_core','wpse_26750'); add_filter('transient_update_core','wpse_26750'); function wpse_26750($options){ global $wp_version; $updates=array( ...


4

Stable release of WP is the one meant for production. Any serious issues (such as security) are addressed via minor releases. Some of the fixes for not that serious issues can be received ahead of schedule with Hotfix plugin. Non-stable versions are usually run by WordPress developers for the sake of experimentation and early access to new features. That is ...


3

If your current plugin version is 1.2.5, and you have a beta version for the next version, it should be called 1.2.6-beta. Your user can install it, and when the real 1.2.6 version is released on the repository, WordPress will notify the user on the Plugins page and let him update. WordPress uses a PHP function called version_compare to compare version ...


3

that could be caused by post revision being saved, and you should use wp_insert_post_data anytime you want to do something before the post is saved, here is an example plugin i just cooked up to test it and it looks like this: <?php /* Plugin Name: wpse37901 Plugin URI: http://en.bainternet.info Description: answer to ...


3

Even when Wordpress is running version 3.1, sites are still being defaced. Even? There had been one major and five security releases since that version. If you are implying that 3.1 should be reasonably secure - it is not. but the only answer seems to be outdated Wordpress sites What had you done to exclude themes, plugins and hosting used to jump ...


3

Imo it's your server or your host. Hosts that are known for not really caring about security on their shared services are dh and mt (and some others out of the big players). Both had been successfully attacked and infected multiple times last year. As i use one of those myself (contract running) and had the same problem as you (different installs, no ...


3

You can... Load the file into the file where you want to display the 'hey username' message: <?php include(TEMPLATEPATH .'/check-user-hello.php'); ?> . Then in that file "check-user-hello.php" You need to put this code <?php if ( is_user_logged_in() ) { global $current_user; get_currentuserinfo(); echo 'Hey ' . $current_user->display_name; ...


3

There's a page in the Codex that shows exactly that: WordPress > About » Statistics But really, it all depends on what features you're using. A safe bet for a new plugin would be to support WordPress 3.1.X and above (since that's the current stable release). You're setting yourself up for a lot of hurt if you try to do too much backwards ...


3

I'm just assuming here but this is usually done by fingerprinting for specific version files/directory's/code and sometimes even size. For example you can remove all the meta versions tags ( isn't there like 12 places) and .txt file for 3.1 but since 3.1 is the only version to include the following new file by default, it is rather easy to fingerprint. ...


3

Check your folder permission. Most likely your folder doesn't have correct permission. The permission should be set to 777. If you have cPanel on your host, then it would be easy for your to do because the GUI is similar to WIndows.


3

I just want to add the batch version of this script, as I've spent quite a bit of time till I found this: Use it to print all the versions of all your wordpress install within a folder. find . -name 'version.php' -path '*wp-includes/*' -print -exec grep '$wp_version =' {} \; -exec echo '' \;


3

You can always use GitHub. WordPress has an official (view-only) GitHub repository, and GitHub has an excellent comparison feature. Here's the GitHub comparison of WordPress 3.4.2 vs 3.5.


3

Note: there is no Version "3.04". There is a Version "3.0.4", though. The important thing to understand with WordPress version numbers is that, unlike many software applications, the latest major version is not Version X, but rather, Version X.Y. So, in WordPress, Version X.0 is no more important, stable, or secure than Version X.1 (and in fact, generally ...


3

If you're manually installing a plugin, you need to disable and delete the old version. However, WordPress does allow you to update your plugin programatically. If your plugin is hosted on the WordPress.org repository, it will prompt the users to install updates for you. You've likely seen this with Akismet and other plugins already. If your plugin isn't ...



Only top voted, non community-wiki answers of a minimum length are eligible