📜 ⬆️ ⬇️

WordPress 3.0: New Features. In more detail

image

On Habré there were already articles about the new features of WordPress 3.0, but after the alpha version came into my hands, I decided to tell you in more detail what was new and interesting in the third version.



Installation


The installation of WordPress 3.0 almost did not change, except for one thing - you can now enter your username and password. Of course, I would like to see it a long time ago, but the developers decided to add this feature only starting from version 3.x
')
image


Login Registration


This is what the login window looks like - nothing has changed. As always. But…
image

... I present to you a new chip - "Tremella" :) The fact is that the developers decided to add a little animation. If the user enters the wrong parameter (login or password), except for the error, the input window twitches a little in different directions (arrows - this is where the window will go).
image

Only as a designer thing. But cool. :)

Administrative panel


So we got to the main window WordPress - admin console. Many have written that it will undergo a dramatic change, but in my version (WordPress 3.0 Alpha) I did not find anything that could make me tremble.

image

That's just what I circled and changed. And that - purely outwardly. First: added Privacy On / Off. Indicates whether privacy from search engines is enabled. Second: an external change to the "Right Now" widget. Almost imperceptibly.

Theme


The new theme is still damp. There are some minor flaws, but I will say that the theme is updated every day, so by the way WordPress will be all right.

image


Multiblog


As everyone knows, starting with the new version, WordPress and WordPress MU are now a single entity. Let's take a closer look at this feature.
By default, the multiblog function (I don’t know how it will be implemented in the release) will be disabled. To enable it, you will need to add a line to the configuration file:

define('WP_ALLOW_MULTISITE', true);

Next, the “Network” item will appear in the console.
image

Next, go in there and perform two small installation steps. The first is to specify how to create new sites (either name.site.ru or site.ru/name ), and the second is to configure the wp-config.php and .htaccess file

image


image


If you did everything correctly, you can safely go to the main menu of the admin console or refresh the page. Congratulations. Now you are “Super Admin”! :)

image


If you continue to show screenshots, it turns out very expensive. I will say that there will be many different settings. It will be possible to specify how much space you allocate for each site, what users can upload (pictures, video, music) and what maximum size downloadable files can be. You can also customize the sending of registration letters (template, text), specify which themes will be available to all users, and which only to VIP-persons. In the “Right now” widget (from the screenshot above, you can see), you can monitor the occupied disk space.

You can talk a lot. But I will stop.

Security


In version 3.0, they took care of security. After all, now you can create a lot of sites and the probability of hacking increases. I had not yet had time to investigate everything, I noticed only that the lines of code were added to the files responsible for the work of the admin panel:

if ( ! current_user_can('manage_options') )
wp_die(__('You do not have sufficient permissions to manage options for this blog.'));


If anyone knows more about new methods of protection, then write in the comments - it will be very interesting.

User Records


Now add news will be much more interesting. Custom entries will allow you to create many different types for articles, for example, you can combine them into one group of "Movies", "Actors", "Genres", etc. Let's look at all this with an example.
Create a record "Games". To do this, add a line to the theme's functions.php file:

function post_type_games() {
register_post_type( 'games',
array( 'label' => __(''), 'public' => true, 'show_ui' => true ) );
register_taxonomy_for_object_type('post_tag', 'games');
}
add_action('init', 'post_type_games');


The Games section will now appear in the admin menu.

image


Now we will try to add the category “Genre” and tags “Developer” to “Games”. To do this, in the same functions.php, let's fix the code I mentioned above:

function post_type_games() {
register_post_type(
'games',
array(
'label' => __(''),
'public' => true,
'show_ui' => true,

)
);

register_taxonomy( 'genre', 'games', array( 'hierarchical' => true, 'label' => __('') ) );

register_taxonomy( 'developer', 'games',
array(
'hierarchical' => false,
'label' => __(''),
'query_var' => 'developer',
'rewrite' => array('slug' => 'developer' )
)
);
}
add_action('init', 'post_type_games');


Got:

image


Now when writing, the news will relate to the Games, but you can also specify the category "Genre" and add the label "Developer". Fantasy has no boundaries - you can create and combine various posts.

image


miscellanea


Among other things, they talked about many more chips. For example, about the Guide, who will help, and talk about new features, but in my version it is not yet.
The possibility of more convenient menu management on the site (in connection with this, we have moved WordPress release dates), while it has a lot of non-working elements. But in the future it will greatly simplify the work with the site.

Here are some more pictures:

The news export function has become more flexible.

image


Change the picture in the header:

image


Setting up another site

image


For those who want to try 3.0


Generally, on March 15, the public beta version of the engine was supposed to be released, but for now silence. If you want to try out 3.0 right now, you can use a program like TortoiseSVN (or any similar) to checkout at http://core.svn.wordpress.org/trunk/ and get the latest updates.

Conclusion


Let me say that, despite the development of WordPress, it can be noted that developers are focusing on the convenience and ease of use of the engine. It's good. But at the same time, they absolutely do not look towards performance. WordPress 3.0 still "eats" as well as his fellows. I have not tried the multi-blog system yet, but when there are many sites on the server on one WordPress (and they will all make different requests), I don’t think the load will be small.

Update: added a little bit about user records :)

Source: https://habr.com/ru/post/87840/


All Articles