Permalink
Browse files

Minor: Fix text indentation in some lists

  • Loading branch information...
1 parent fe2f57f commit 079d8caeb5943b26103bcab1371e3eed9e67cf6e @YahnisElsts committed on GitHub Jul 28, 2016
Showing with 17 additions and 17 deletions.
  1. +17 −17 README.md
View
@@ -57,14 +57,14 @@ Now that you have the server ready to go, the next step is to make your plugin q
2. Move the `plugin-update-checker` directory to your plugin's directory.
3. Add the following code to your main plugin file:
- ```php
-require 'path/to/plugin-update-checker/plugin-update-checker.php';
-$MyUpdateChecker = PucFactory::buildUpdateChecker(
- 'http://example.com/wp-update-server/?action=get_metadata&slug=plugin-directory-name', //Metadata URL.
- __FILE__, //Full path to the main plugin file.
- 'plugin-directory-name' //Plugin slug. Usually it's the same as the name of the directory.
-);
-```
+ ```php
+ require 'path/to/plugin-update-checker/plugin-update-checker.php';
+ $MyUpdateChecker = PucFactory::buildUpdateChecker(
+ 'http://example.com/wp-update-server/?action=get_metadata&slug=plugin-directory-name', //Metadata URL.
+ __FILE__, //Full path to the main plugin file.
+ 'plugin-directory-name' //Plugin slug. Usually it's the same as the name of the directory.
+ );
+ ```
4. When you're ready to release an update, just zip the plugin directory as described above and put it in the `packages` subdirectory on the server (overwriting the previous version).
The library will check for updates twice a day by default. If the update checker discovers that a new version is available, it will display an update notification in the WordPress Dashboard and the user will be able to install it by clicking the "upgrade now" link. It works just like with plugins hosted on WordPress.org from the users' perspective.
@@ -81,18 +81,18 @@ See the [update checker docs](http://w-shadow.com/blog/2010/09/02/automatic-upda
2. Place the `theme-updates` directory in your `includes` or the equivalent.
3. Add this snippet to your `functions.php`:
- ```php
-require 'path/to/theme-updates/theme-update-checker.php';
-$MyThemeUpdateChecker = new ThemeUpdateChecker(
- 'theme-directory-name', //Theme slug. Usually the same as the name of its directory.
- 'http://example.com/wp-update-server/?action=get_metadata&slug=theme-directory-name' //Metadata URL.
-);
-```
+ ```php
+ require 'path/to/theme-updates/theme-update-checker.php';
+ $MyThemeUpdateChecker = new ThemeUpdateChecker(
+ 'theme-directory-name', //Theme slug. Usually the same as the name of its directory.
+ 'http://example.com/wp-update-server/?action=get_metadata&slug=theme-directory-name' //Metadata URL.
+ );
+ ```
4. Add a `Details URI` header to your `style.css`:
- ```Details URI: http://example.com/my-theme-changelog.html```
+ ```Details URI: http://example.com/my-theme-changelog.html```
- This header specifies the page that the user will see if they click the "View version x.y.z details" link in an update notification. Set it to the URL of your "What’s New In Version z.y.z" page or the theme homepage.
+ This header specifies the page that the user will see if they click the "View version x.y.z details" link in an update notification. Set it to the URL of your "What’s New In Version z.y.z" page or the theme homepage.
Like with plugin updates, the theme update checker will query the server for theme details every 12 hours and display an update notification in the WordPress Dashboard if a new version is available.

0 comments on commit 079d8ca

Please sign in to comment.