11<?php
2- if ( !class_exists ('Puc_v4p11_Factory ' , false ) ):
2+ if ( !class_exists ('Puc_v4p12_Factory ' , false ) ):
33
44 /**
55 * A factory that builds update checker instances.
1111 * At the moment it can only build instances of the UpdateChecker class. Other classes are
1212 * intended mainly for internal use and refer directly to specific implementations.
1313 */
14- class Puc_v4p11_Factory {
14+ class Puc_v4p12_Factory {
1515 protected static $ classVersions = array ();
1616 protected static $ sorted = false ;
1717
@@ -23,7 +23,7 @@ class Puc_v4p11_Factory {
2323 *
2424 * @param string $fullPath Full path to the main plugin file or the theme's style.css.
2525 * @param array $args Optional arguments. Keys should match the argument names of the buildUpdateChecker() method.
26- * @return Puc_v4p11_Plugin_UpdateChecker|Puc_v4p11_Theme_UpdateChecker|Puc_v4p11_Vcs_BaseChecker
26+ * @return Puc_v4p12_Plugin_UpdateChecker|Puc_v4p12_Theme_UpdateChecker|Puc_v4p12_Vcs_BaseChecker
2727 */
2828 public static function buildFromHeader ($ fullPath , $ args = array ()) {
2929 $ fullPath = self ::normalizePath ($ fullPath );
@@ -54,15 +54,15 @@ public static function buildFromHeader($fullPath, $args = array()) {
5454 * This method automatically detects if you're using it for a plugin or a theme and chooses
5555 * the appropriate implementation for your update source (JSON file, GitHub, BitBucket, etc).
5656 *
57- * @see Puc_v4p11_UpdateChecker ::__construct
57+ * @see Puc_v4p12_UpdateChecker ::__construct
5858 *
5959 * @param string $metadataUrl The URL of the metadata file, a GitHub repository, or another supported update source.
6060 * @param string $fullPath Full path to the main plugin file or to the theme directory.
6161 * @param string $slug Custom slug. Defaults to the name of the main plugin file or the theme directory.
6262 * @param int $checkPeriod How often to check for updates (in hours).
6363 * @param string $optionName Where to store book-keeping info about update checks.
6464 * @param string $muPluginFile The plugin filename relative to the mu-plugins directory.
65- * @return Puc_v4p11_Plugin_UpdateChecker|Puc_v4p11_Theme_UpdateChecker|Puc_v4p11_Vcs_BaseChecker
65+ * @return Puc_v4p12_Plugin_UpdateChecker|Puc_v4p12_Theme_UpdateChecker|Puc_v4p12_Vcs_BaseChecker
6666 */
6767 public static function buildUpdateChecker ($ metadataUrl , $ fullPath , $ slug = '' , $ checkPeriod = 12 , $ optionName = '' , $ muPluginFile = '' ) {
6868 $ fullPath = self ::normalizePath ($ fullPath );
0 commit comments